Thank you, that's exactly what I was looking for and it worked perfectly!
John Peacock wrote:
> Joe Korzeniewski wrote:
>> My question is: how do I move the file structure at the root into a
>> new root
>> trunk folder, yet maintain revision history.
>
> It kind of depends on how large the repository is and how many working
> copies there are. If the project is still in its infancy, and
> especially if you are the only person who is using it, you could do a
> dump and reload into the preferred layout:
>
> $ svnadmin create /path/to/newrepo
> $ svn co file:///path/to/newrepo/ wc
> $ cd wc
> $ mkdir trunk branches tags
> $ svn add trunk branches tags
> $ svn ci -m 'Create the structure'
> $ cd .. && rm -rf wc
> $ svnadmin dump /path/to/oldrepo > repo.dump
> $ svnadmin load --parent-dir trunk /path/to/newrepo < repo.dump
>
> The reason why this might be the better solution is that your history
> will be cleaner (there won't be any messy renames), so it is easier to
> look at the full
> history of the repo.
>
> This method will require you to throw away any existing working
> copies; this repository will have a different UUID from the original,
> so there is no way to convert the working copies to the new repo.
> Additionally, your revision numbers will all be one higher, so if you
> have a habit of referring to the revision number in log messages, this
> will mess you up.
>
> HTH
>
> John
---------------------------------------------------------------------
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 04:50:53 CEST