[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: Michael Wood <mwood_at_its.uct.ac.za>
Date: 2002-10-17 09:47:18 CEST

On Wed, Oct 16, 2002 at 11:00:57PM -0500, cmpilato@collab.net wrote:
> Brandon Ehle <azverkan@yahoo.com> writes:
>
> > Is there anyway to move a repository that was accidentally imported in
> > the root "/" to the "/trunk" directory? > svn mv http://tux/svn/uw
> > http://tux/svn/uw/trunk -m "Moved uw to trunk" --username behle
> >
> > svn: Trying to use an unsupported feature
> > svn: cannot copy path 'http://tux/svn/uw' into its own child
> > 'http://tux/svn/uw/trunk'
> >
> > There are roughly 150 directories & files in the root that need to be
> > moved, is there anyway to achieve this via wildcards or something else
> > I don't know about short of moving every file by hand?
>
> 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?)

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)

Here's a backtrace:
$ gdb python python.core
GNU gdb 4.18 (FreeBSD)
Copyright 1998 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-unknown-freebsd"...
(no debugging symbols found)...
Core was generated by `python'.
Program terminated with signal 6, Abort trap.
[...]
(gdb) bt
#0 0x28149d6c in kill () from /usr/lib/libc_r.so.4
#1 0x2819888e in abort () from /usr/lib/libc_r.so.4
#2 0x28172773 in __assert () from /usr/lib/libc_r.so.4
#3 0x28212cef in svn_path_join (
    base=0x810e314 "http://svn.collab.net/repos/svn/",
    component=0x283a96f6 "format", pool=0x817f018)
    at subversion/libsvn_subr/path.c:164
#4 0x283a70d0 in svn_repos_open (repos_p=0xbfbff22c,
    path=0x810e314 "http://svn.collab.net/repos/svn/", pool=0x817f018)
    at subversion/libsvn_repos/repos.c:626
#5 0x283c1e7b in _wrap_svn_repos_open ()
   from /usr/local/lib/python2.2/site-packages/svn/_repos.so
#6 0x80b0cff in PyCFunction_Call ()
#7 0x807151b in PyEval_EvalCode ()
#8 0x80724a0 in PyEval_EvalCodeEx ()
#9 0x80a732e in PyFunction_SetClosure ()
#10 0x8099e08 in PyObject_Call ()
#11 0x809f0b3 in PyMethod_New ()
#12 0x8099e08 in PyObject_Call ()
#13 0x8072fbd in PyEval_CallObjectWithKeywords ()
#14 0x809c086 in PyInstance_New ()
#15 0x8099e08 in PyObject_Call ()
#16 0x8072fbd in PyEval_CallObjectWithKeywords ()
#17 0x80b22a1 in PyStructSequence_InitType ()
#18 0x80b0cff in PyCFunction_Call ()
#19 0x807151b in PyEval_EvalCode ()
#20 0x80724a0 in PyEval_EvalCodeEx ()
#21 0x8073208 in PyEval_GetFuncDesc ()
#22 0x80715bd in PyEval_EvalCode ()
#23 0x80724a0 in PyEval_EvalCodeEx ()
#24 0x8073208 in PyEval_GetFuncDesc ()
#25 0x80715bd in PyEval_EvalCode ()
#26 0x80724a0 in PyEval_EvalCodeEx ()
#27 0x806eee1 in PyEval_EvalCode ()
#28 0x8088d7b in PyRun_FileExFlags ()
#29 0x8088d36 in PyRun_FileExFlags ()
#30 0x8088d0a in PyRun_FileExFlags ()
#31 0x8088084 in PyRun_SimpleFileExFlags ()
#32 0x8087ba8 in PyRun_AnyFileExFlags ()
#33 0x8052c11 in Py_Main ()
#34 0x805252c in main ()
#35 0x8052489 in _start ()

$ svn --version
Subversion Client, version 0.14.3 (dev build)
   compiled Sep 24 2002, 00:15:35

Copyright (C) 2000-2002 CollabNet.
Subversion is open source software, see http://subversion.tigris.org/

The following repository access (RA) modules are available:

* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
  - handles 'http' schema
  - handles 'https' schema
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' schema

$ python -V
Python 2.2.1

-- 
Michael Wood <mwood@its.uct.ac.za>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Oct 17 09:48:15 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.