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

Bug: renaming directories leaves behind some "garbage"

From: Matthias Meixner <mmeixner_at_hypercom.com>
Date: Thu, 20 Nov 2008 08:36:33 -0700

subversion has a problem with renaming directories. If you run the following script it will print an error.
If you uncomment the "svn update" commands, it will run without errors. This is strange as one else modifying the repository and, therefore, "svn update" should not be needed.


Matthias Meixner


mkdir /tmp/repo
svnadmin create /tmp/repo

mkdir -p "foo/a1/b1"
svn import foo file:///tmp/repo/foo -m "test"
svn co file:///tmp/repo/foo bar
cd bar
svn mv "a1" "a2"
svn mv "a2/b1" "a2/b2"
svn ci -m "test"

#svn update
svn mv "a2/b2" "a2/b1"
svn mv "a2" "a1"
svn ci -m "test"

#svn update
svn mv "a1" "a2"
svn mv "a2/b1" "a2/b2"
svn ci -m "test"

cd ..
rm -rf foo bar /tmp/repo

To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-11-20 16:59:41 CET

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.