Remove SVN Info from a Folder
Tagged with: delete, find, remove, subversion, svn
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
This command removes the SVN data from a folder.
find -name .svn -exec rm -rf {} \;
Creating a tag in SVN means that you copy the entire trunk to another folder in the ‘tags’ folder…
svn copy trunk/ tags/TAG_NAME
Moving, Coping and Deletion
svn mv file.php to_folder/ #Move
svn cp file.php to_folder/ #Copy
svn rm file.php #Deletion
This script will package your SVN code to a tar.gz file. Just give the name of the project as the first argument. Like this…
perl packager.pl jus5
#!/usr/bin/perl
#Package a Sourceforge project from its SVN source.
die("Please provide the name of the project as the argument") unless($ARGV[0]);
$project=$ARGV[0];
#$project='jus5';
`svn checkout https://$project.svn.sourceforge.net/svnroot/$project`;
`find $project/ -name .svn -exec rm -rf {} \\;`;
`tar -czf $project.tar.gz $project/`;
`rm -rf $project/`;
[tags]source,sourceforge,project,package,perl,script,svn[/tags]
This is the method that I use to package a SVN Project. For CVS projects, the code is slightly different. Please note that the second line requires bash to work.
This is how I packaged nexty
svn checkout https://nexty.svn.sourceforge.net/svnroot/nexty
find nexty/ -name .svn -exec rm -rf {} \;
tar -czf nexty.tar.gz nexty/
rm -rf nexty/
[tags]svn,package,zip,compress,project,subversion[/tags]
svn import <Folder> <Repository>
Online Repository Example
svn import Nexty https://nexty.svn.sourceforge.net/svnroot/nexty
svn checkout https://nexty.svn.sourceforge.net/svnroot/nexty [<folder>]
svn update
[tags]svn,subversion,version control,command,cli,import,checkout,update[/tags]