On Mon, Jan 13, 2003 at 11:58:10AM -0500, Eric Gillespie wrote:
[snip]
> Second, most move and copy operations work, but at least one
> fails: moving (or copying) a file or directory to the root of the
> repository. Reproduction recipe and transcript below. This
> demonstrates the bug with mv, but it also happens with cp. The
> same thing happens if 'subdir' is a file instead of a directory.
Your reproduction recipe doesn't match your description. You said the
bug happens when you move the file/directory to the root of the
repository, but in the reproduction recipe you move subdir into the same
dir it's already in.
> svnadmin create repo
> svn mkdir -m '' svn://localhost$PWD/repo/dir
> svn mkdir -m '' svn://localhost$PWD/repo/dir/subdir
> svn mv -m '' svn://localhost$PWD/repo/dir/subdir/ svn://localhost$PWD/repo/dir/
[snip]
Does this work:
svnadmin create repo
svn mkdir -m '' svn://localhost`pwd`/repo/dir
svn mkdir -m '' svn://localhost`pwd`/repo/dir/subdir
svn mkdir -m '' svn://localhost`pwd`/repo/dir/subdir/blah
svn mv -m '' svn://localhost`pwd`/repo/dir/subdir/blah \
svn://localhost`pwd`/repo/dir
And how about this:
svnadmin create repo
svn co svn://localhost`pwd`/repo wc
cd wc
touch blah
svn add blah
svn ci -m ''
cd ..
svn mv -m '' svn://localhost`pwd`/repo/blah \
svn://localhost`pwd`/repo/blah
Can't test this myself at the moment, since I don't have a client handy
with ra_svn compiled in.
I would have expected the following output from your recipe:
$ svnadmin create repo
$ svn mkdir -m '' file://`pwd`/repo/dir
Committed revision 1.
$ svn mkdir -m '' file://`pwd`/repo/dir/subdir
Committed revision 2.
$ svn mv -m '' file://`pwd`/repo/dir/subdir file://`pwd`/repo/dir
svn: Item already exists in filesystem
svn: fs path `subdir' already exists.
--
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 Tue Jan 14 08:01:47 2003