You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by "Jay Freeman (saurik)" <sa...@saurik.com> on 2001/11/22 00:59:05 UTC

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

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

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

Posted by Ben Collins-Sussman <su...@collab.net>.
"Jay Freeman \(saurik\)" <sa...@saurik.com> writes:

> 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).

Jay, we're in the middle of revamping 'svn cp' right now to deal with
directories and other things.  I'm not surprised at all that we're
regressing a bit at the moment;  we had almost no tests for this
feature to begin with anyway... it's too new.  But fear not:  we've
got many, many tests coming soon that will exercise all of these 'cp'
scenarios.  For the moment, don't expect them to work just yet...


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org