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

[BUG ?] strange behavior of 'svn move'

From: Stefano Spinucci <virgo977virgo_at_yahoo.it>
Date: 2004-10-15 20:22:19 CEST

Today I noticed a *very* strange behavior in svn move.
 
When I rename a file in a subdir, and then I rename the subdir, and finally I checkout in another wc, I got two times the renamed file, with the old and the new name.
 
Moreover, in the commit after the directory rename I obtain an 'out of date' error, resolved with a svn up before the commit.
 
I tried this on windows, with subversion 1.0.9, 1.1.0rc2 and 1.1.0
 
Finally, *excuse me* if this problem is already known.
 
I attach a windows batch file to reproduce the problem.
 
file batch start ===================================

 
rem the *first* working copy is located in c:\svnwklocal
rem the *second* working copy is located in c:\svnwk1local

 
rem cd root dir
cd \
 
rem wk1 - enter
cd svnwklocal
 
rem wk1 - create dir1
md dir1
 
rem wk1 - adding dir1
svn add dir1
 
rem wk1 - enter dir1
cd dir1
 
rem wk1 - create file 1
time /t > file1
 
rem wk1 - create file 2
time /t > file2
 
rem wk1 - create file 3
time /t > file3
 
rem wk1 - adding created files
svn add *
 
rem wk1 - commit
svn ci -m "commit"
 
rem cd root dir
cd \
 
rem wk2 - enter
cd svnwk1local
 
rem wk2 - update
svn up
 
rem cd root dir
cd \
 
rem wk1 dir1 - enter
cd svnwklocal\dir1
 
rem wk1 - rename file 1
svn ren file1 file1ren
 
rem wk1 - rename file 2
svn ren file2 file2ren
 
rem wk1 - commit
svn ci -m "commit"
 
rem wk1 - up one level
cd ..
 
rem wk1 - move dir
svn ren dir1 dir1ren
 
rem wk1 - update
rem this update is stange, but without this the commit 'll fail with the error
rem " out of date: 'dir1' in transaction '...' "
svn up
 
rem wk1 - commit
svn ci -m "commit"
 
rem cd root dir
cd \
 
rem wk2 - enter
cd svnwk1local
 
rem wk2 - update
svn up

===================================== file batch end
 

---
 
Stefano Spinucci
Italy
		
---------------------------------
Do you Yahoo!?
Yahoo! Mail - Helps protect you from nasty viruses.
Received on Fri Oct 15 20:22:51 2004

This is an archived mail posted to the Subversion Dev mailing list.