SVN repository creation question -
i checking out current version of design current command:
svn checkout svn+ssh://test@example.com/mainrepository/trunk/projects/design1 .
that works fine, , made substantial changes implemetation hold copy of milestone in svn. in other words, check in current version own directory, ie "design2":
in doing so, able checkout version similar above
svn checkout svn+ssh://test@example.com/mainrepository/trunk/projects/design2 .
i have never create new directory in svn, wondering if have create subrepository able check out design2 follows:
su - svn mkdir svn+ssh://test@example.com/mainrepository/trunk/projects/design2 svnadmin create svn+ssh://test@example.com/mainrepository/trunk/projects/design2
is there problem when create files checked out earlier? know how deal svn after step, never created new directory/repository new implementation appreciated!
i'm assuming want make new branch, i.e. want design1
, design2
live side side can diverge.
don't create new repository svnadmin
. instead, this:
cd design1 svn status # make sure ready if normal commit svn copy . svn+ssh://server.ac.uk/mainrepository/trunk/projects/design2 -m "creating new branch design 2"
now delete working copy (it still pointing @ design1 , contains pending changes , though have been committed design2 -- yes, it's confusing, best delete it). create new checkout design2 can continue making changes , committing:
cd .. rm -rf design1 svn co svn+ssh://server.ac.uk/mainrepository/trunk/projects/design2 cd design2
this complicated way commit changes new branch. first create branch (svn copy url1 url2
), check out branch in separate working copy, , then make changes. isn't possible in case because have made changes intended new branch in first working copy.
note layout in repository not follow recommended repository layout. doesn't have problem, recommend follow conventions future projects.
Comments
Post a Comment