On Jun 11, 2008, at 15:59, Joe Korzeniewski wrote:
> When I created this particular svn repo, I checked in what should
> be under trunk under the root of the repo. Now I am at a point
> where I realize that this project may get complicated enough to
> need branching and tagging (I know, I should have used my brain and
> created the trunk, branches and tags to begin with). My question
> is: how do I move the file structure at the root into a new root
> trunk folder, yet maintain revision history. This may be simple,
> but I haven't been using svn long and would be really bummed out if
> I lost my revision history.
It's no problem :)
I would:
check out a temporary working copy
cd to the temporary working copy
svn mkdir trunk branches tags
for every item that is not trunk branches or tags
svn mv item trunk
end
svn commit
delete temporary working copy
Done!
If you have other existing working copies that you would like to
continue to use, you can "svn switch" them to the new location of
those files. For example, if your repo is $REPO and you had
previously created this working copy using "svn checkout $REPO wc",
then now you can use "svn switch $REPO/trunk wc".
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-12 00:04:33 CEST