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

Re: [BUG ?] strange behavior of 'svn move'

From: Stefano Spinucci <virgo977virgo_at_yahoo.it>
Date: 2004-10-16 00:22:31 CEST

Because a svn move (or rename) is simply a delete and
a copy, I noticed the 'strangeness' also in the
following case:

in the working copy ONE :
1) create the dir 'dir1'
2) create the file 'file1' inside 'dir1'
3) add 'dir1'
4) commit
5) delete 'file1'
6) commit (this point maybe skipped)
7) copy 'dir1' in 'dir2'
8) commit

in the working copy TWO :
9) update

and you 'll get :
* 'dir1', empty
* 'dir2', with 'file1' inside (remember that 'file1'
were deleted at the point nr. 5)

---
Stefano Spinucci
Italy
--- Stefano Spinucci <virgo977virgo@yahoo.it> wrote:
> 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.
		
__________________________________
Do you Yahoo!?
Read only the mail you want - Yahoo! Mail SpamGuard.
http://promotions.yahoo.com/new_mail 
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 16 00:22:41 2004

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