[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Moving root repository

From: <cmpilato_at_collab.net>
Date: 2002-10-17 14:45:54 CEST

Michael Wood <mwood@its.uct.ac.za> writes:

> > DISCLAIMER: This is an official hack suggestion. Make sure you back up your repository.
> >
> > 1. svnadmin dump repos > dumpfile
> > 2. mv repos old_repos
> > 3. svnadmin create repos
> > 4. svn mkdir -m "Making trunk" file:///path/to/repos
> > 5. Now, edit dumpfile in your favorite editor:
> > a. Prepend "trunk/" to all "Node-path:" values
> > b. If you have copy-from information anywhere, also prepend
> > "trunk/" to any copy-from-paths, and remember to increment
> > copy-from-revisions by 1.
> > c. finally, remove the whole entry from Revision 0
> > 6. svnadmin load repos < dumpfile
> >
> > Piece o' cake.
> [snip]
>
> Won't anything care that your first revision is newer than all the
> others? :) Or should you change the date of the first revision too?
> (Maybe a job for svn ps -r 1 svn:date blah?)

Hm...I hope not, since the same scenario could happen naturally. I
mean, my machine's clock could have just been wrong for the first
commit, and correcting the time, might have meant backing it up a
bit. No core Subversion functionality depends on those date
timestamps being ordered, as far as I know. That is, if you always
use -r with your subcommands, dates are never used at all.

> hmmm... I just got a core dump (Abort) from svnlook.py while trying to
> look at the date of the first revision of
> http://svn.collab.net/repos/svn/
>
> $ tools/examples/svnlook.py http://svn.collab.net/repos/svn/ rev 1 date
> assertion "is_canonical_nts (base, blen)" failed: file "subversion/libsvn_subr/path.c", line 164
> Abort trap (core dumped)

svnlook.py (like svnlook) only works on repository paths (local disk),
not repository URLs.

That said, the bug should be fixed.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 14:49:18 2002

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.