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

svn mv's and empty commits

From: Blair Zajac <blair_at_orcaware.com>
Date: 2006-08-16 02:19:10 CEST

Moving a file using URLs into one of its parent's directories where the
destination URL ends only in the destination directory looks like it succeeds,
but does not. For example,

svn mv http://example.com/repos/A/B/file.txt http://example.com/repos/A/

causes this. If you use http://example.com/repos/A/file.txt, then you get the
add and the delete.

Has this been seen before? I looked through the issue tracker quickly and
didn't see anything.

At the end of this recipe, you end up with an empty commit. This happens with

rm -fr repos wc
svnadmin create repos
svn co file://`pwd`/repos wc
cd wc
svn mkdir A
svn mkdir A/B
svn ci -m 'create A/B'
touch A/B/file.txt
svn add A/B/file.txt
svn ci -m 'add file.txt'
cd ..
svn mv -m 'move file.txt' file://`pwd`/repos/A/B/file.txt file://`pwd`/repos/A
cd wc
svn update
svn log -v -r HEAD


Blair Zajac, Ph.D.
Subversion training, consulting and support
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Aug 16 02:19:53 2006

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.