You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by "Ronny T. Lampert" <te...@uni.de> on 2005/03/03 16:36:44 UTC
Load dumped repos into a certain URL
Hi,
consider the following:
You committed to a repos, only to learn later you forgot to make all the
important directories for branches, tags and trunk (don't laugh) - or
anything else (or because you though you won't need them).
So the repos-tree looks like:
/
xyz.awk
configure
Makefile.in
[...]
you would like to take the existing repos, dump it and load it into an URL
( file:///repos/trunk/proj ), not into the plain repos resembling the same
structure again, so it later looks like:
/
trunk/
proj/
xyz.awk
configure
[...]
branches/
you get the idea. Unfortunately, this won't work, as a "svnadmin load" only
works on PATHs, not URLs (why?).
svn mv is not really working, too, because I lose the history, when I only
checkout trunk/proj , because it seems the old revisions' history is not
properly attached (which makes sense, of course).
Is there ANY possibility do the above described? I found nothing when
searching around.
Thanks & cheers.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Load dumped repos into a certain URL
Posted by Ben Collins-Sussman <su...@collab.net>.
On Mar 3, 2005, at 10:46 AM, Ronny T. Lampert wrote:
>> you would like to take the existing repos, dump it and load it into
>> an URL
>> ( file:///repos/trunk/proj ), not into the plain repos resembling the
>> same structure again, so it later looks like:
> > [...]
>> Is there ANY possibility do the above described? I found nothing when
>> searching around.
>
> Please kill me.
> svnadmin load --parent-dir /trunk/proj works fine. How could I
> overlook that option.
>
There's also nothing wrong with 'svn mv'. It *does* preserve history.
Just checkout a working copy of the root-directory of the repository.
Then 'svn mv' each item into the trunk/proj/ directory, and 'svn
commit'. The history is preserved. When you run 'svn log' on anything
within trunk/proj/, you'll see the old history.
> The question, however, still remains why URL loads are not supported,
> because then it would be immediately clear how to do it!
Because dumping and loading are considered rare things done by
administrators. It's a way of migrating data to a new database schema,
or a new database back-end, or a way of making a large backup into a
neutral-data format.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: Load dumped repos into a certain URL
Posted by "Ronny T. Lampert" <te...@uni.de>.
> you would like to take the existing repos, dump it and load it into an URL
> ( file:///repos/trunk/proj ), not into the plain repos resembling the
> same structure again, so it later looks like:
> [...]
> Is there ANY possibility do the above described? I found nothing when
> searching around.
Please kill me.
svnadmin load --parent-dir /trunk/proj works fine. How could I overlook that
option.
The question, however, still remains why URL loads are not supported,
because then it would be immediately clear how to do it!
Sorry.
Keywords: change repository layout load dumped later
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org