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

are 'svn move' and 'svn copy' supposed to work? (as they aren't)

From: Jay Freeman \(saurik\) <saurik_at_saurik.com>
Date: 2001-11-22 01:59:05 CET

Hmmm... at the end of this e-mail is a transcript of what I'm trying.
For some reason, committing the move or copy operations causes svn to
fail to add the new fie fully (as is shown by both the failure to mark
it off in the 'svn status', and the failure of the new 'svn co' to get
either file), but it always tries every commit (note the successive 'svn
status' and 'svn copy' operations at the bottom... those aren't mistakes
in my copy/paste job).

In the case of the move it actually damages the working copy somehow
(note the strange crash in the attempt to retry the commit). The error
that Apache logs to that fail out is:

 [Wed Nov 21 18:44:44 2001] [error] [client 209.224.199.248] Could not
CHECKOUT resource /svn/repos/$svn/ver/0.0/. [409, #0]
[Wed Nov 21 18:44:44 2001] [error] [client 209.224.199.248] The version
resource does not correspond to the resource within the transaction.
Either the requested version resource is out of date (needs to be
updated), or the requested version resource is newer than the
transaction root (restart the commit). [409, #0]

 [root(2)@dreadnought evil]# rm -rf /cvs/svn
[root(2)@dreadnought evil]# svnadmin create /cvs/svn
[root(2)@dreadnought evil]# chown apache.apache -R /cvs/svn
[root(2)@dreadnought evil]# svn co http://cvs.saurik.com:423/svn/repos
[root(2)@dreadnought evil]# cd repos
[root(2)@dreadnought repos]# touch bob
[root(2)@dreadnought repos]# ls
bob
[root(2)@dreadnought repos]# svn add bob
A bob
[root(2)@dreadnought repos]# svn status
A ./bob
[root(2)@dreadnought repos]# svn commit -m hello
Adding /home/saurik/evil/repos/bob
Commit succeeded.
[root(2)@dreadnought repos]# svn status
[root(2)@dreadnought repos]# svn move bob george
A george
D bob
[root(2)@dreadnought repos]# svn status
D ./bob
A ./george
[root(2)@dreadnought repos]# svn commit
Deleting /home/saurik/evil/repos/bob
Adding /home/saurik/evil/repos/george
Commit succeeded.
[root(2)@dreadnought repos]# svn status
A ./george
[root(2)@dreadnought repos]# ls
bob george
[root(2)@dreadnought repos]# svn commit

svn_error: #21075 : <RA layer's server request failed>
  commit failed: wc locks and tmpfiles have been removed.

svn_error: #21075 : <RA layer's server request failed>
  commit failed: while sending tree-delta to repos.

svn_error: #21075 : <RA layer's server request failed>
  The CHECKOUT request failed (http #409) (/svn/repos/$svn/ver/0.0/)
[root(2)@dreadnought repos]# cd ..
[root(2)@dreadnought evil]# rm -rf repos
[root(2)@dreadnought evil]# svn co http://cvs.saurik.com:423/svn/repos
[root(2)@dreadnought repos]# ls
[root(2)@dreadnought repos]# ls -la
total 12
drwxr-xr-x 3 root root 4096 Nov 21 18:47 .
drwxr-xr-x 3 root root 4096 Nov 21 18:47 ..
drwxr-xr-x 8 root root 4096 Nov 21 18:47 .svn
[root(2)@dreadnought repos]# svn log
------------------------------------------------------------------------
rev 2: anonymous | Wed 21 Nov 2001 18:44:36 | 1 line

------------------------------------------------------------------------
rev 1: anonymous | Wed 21 Nov 2001 18:44:07 | 1 line

hello
------------------------------------------------------------------------
[root(2)@dreadnought repos]# touch jack
[root(2)@dreadnought repos]# svn up
? ./jack
[root(2)@dreadnought repos]# svn add jack
A jack
[root(2)@dreadnought repos]# svn commit
Adding /home/saurik/evil/repos/jack
Commit succeeded.
[root(2)@dreadnought repos]# svn cp jack bill
A bill
[root(2)@dreadnought repos]# svn commit
Adding /home/saurik/evil/repos/bill
Commit succeeded.
[root(2)@dreadnought repos]# svn status
A ./bill
[root(2)@dreadnought repos]# svn commit
Adding /home/saurik/evil/repos/bill
Commit succeeded.
[root(2)@dreadnought repos]# svn status
A ./bill
[root(2)@dreadnought repos]# svn commit
Adding /home/saurik/evil/repos/bill
Commit succeeded.
[root(2)@dreadnought repos]#

Sincerely,
Jay Freeman (saurik)
saurik@saurik.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:36:49 2006

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.