svn switch with externals leaves working copy in an inconsistent state
From: Robert Wruck <wruck_at_tweerlei.de>
Date: Thu, 25 Apr 2013 12:47:15 +0200
Hi,
I just came across this issue. Assume we have two branches:
Steps to create:
svn mkdir --parents $REPO_URL/trunk/main/external/subdir -m "Create main"
svn mkdir --parents $REPO_URL/trunk/external/subdir -m "Create external"
svn mkdir --parents $REPO_URL/branches -m "Create branches"
svn cp $REPO_URL/trunk $REPO_URL/branches/A -m "Without externals"
svn rm $REPO_URL/trunk/main/external -m "Remove subdir"
svn co $REPO_URL/trunk/main; cd main
svn propset svn:externals "external $REPO_URL/trunk/external" .
svn commit -m "Replace subdir with external"
svn cp $REPO_URL/trunk $REPO_URL/branches/B -m "With externals"
Now try to switch between these two branches.
svn switch $REPO_URL/branches/A/main
Second switch is .. interesting.
svn switch $REPO_URL/branches/B/main
Now switch back:
svn switch $REPO_URL/branches/A/main
The "external" subdir is gone now.. but svn update brings it back and
svn up
So there are two problems:
1) When switching from a WC with externals to a WC without externals,
2) When switching from a WC without externals to a WC with externals,
touch testfile
The only way to avoid this ist to switch with --ignore-externals and
svn switch $REPO_URL/branches/A/main
Is this a known issue?
svn --version
-Robert
|
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.