You set this up before the initial import. Create a directory (let's assume /home/rhose/svn). In this directory, create three more directories -- trunk, tags, and branches. Place all your directories/code in the trunk directory.
cd /home/rhose mkdir svn cd svn mkdir trunk mkdir tags mkdir branches cd trunk cp /home/rhose/work/project123/* .
You are now ready to import. (Please note, I'm using the Subversion daemon in this example.)
svn import /home/rhose/svn svn://myserver/myrepo -m "Initial import"
You are now free to nuke your import structure, checkout the trunk, and start working. Also, I like to make a temporary copy of the original files until I verify the repo import worked correctly and everything is in there... I've never had a problem, but I tend to play it extra safe. (Please note... once you check out a repo, do NOT mess with the .svn directories -- like Bruce Banner, you'll not like them when they're angry.)
cd /home/rhose/svn rm -rf * cd /home/rhose/work mv project123 project123.save mkdir project123 cd project123 svn checkout svn://myserver/myrepo/trunk/ . vi mycode.pl svn commit -m "Made change XXX for project YYYY" cd .. rm -rf project123.save
If you are in a Windows environment, I'd like to second tphyahoo's advice -- TortoiseSVN is wonderful.
In reply to Re^2: Learning How to Use CVS for Personal Perl Coding Practices
by Rhose
in thread Learning How to Use CVS for Personal Perl Coding Practices
by neversaint
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |