Julian Foad wrote:
> So, we have reproduction recipes in which a plain "switch" command
> currupts the WC when it fails. Now we just need to start debugging!
I think that we should split the issue into three.
1. 'file' not switched if it is the same in source and destination
----------------------------------------------------------------------
svnadmin create repo
svn co file:///g:/repos/repo wc1
mkdir wc1\trunk\dir
mkdir wc1\branch
time /t >wc1\trunk\file
svn add wc1/trunk
svn add wc1/branch
svn ci -m "" wc1
svn cp -m "" file:///g:/repos/repo/trunk file:///g:/repos/repo/branch/version1
svn co file:///g:/repos/repo/trunk wc2
svn switch -N file:///g:/repos/repo/branch/version1 wc2
svn info wc2/dir
# still on trunk is correct
svn info wc2/file
# still on trunk is incorrect
----------------------------------------------------------------------
2. Invalid URL for file after switch
----------------------------------------------------------------------
svnadmin create repo
svn co file:///g:/repos/repo wc1
mkdir wc1\trunk
mkdir wc1\branch\version1
date /t >wc1\trunk\file
date /t >wc1\branch\version1\file
svn add wc1/trunk
svn add wc1/branch
svn ci -m "" wc1
svn co file:///g:/repos/repo/trunk wc2
svn switch -N file:///g:/repos/repo/branch/version1 wc2
svn info wc2
# URL is correct
svn info wc2/file
# URL is incorrect
----------------------------------------------------------------------
3. dir not locked error if switching a non-recursive wc
----------------------------------------------------------------------
svnadmin create repo
svn co file:///g:/repos/repo wc1
mkdir wc1\trunk\dir
mkdir wc1\branch\version1\dir
svn add wc1/trunk
svn add wc1/branch
svn ci -m "" wc1
svn co -N file:///g:/repos/repo/trunk wc2
svn switch file:///g:/repos/repo/branch/version1 wc2
svn info wc2
# URL of wc2 is incorrect
# This may be the same problem as in case two. But this time with
# a directory instead of a file.
----------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 9 10:48:12 2004