You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Hakan Koseoglu <ha...@gmail.com> on 2004/12/08 15:14:12 UTC

Confusing a local wc

Hi all,

I haven't had so much fun since I watched Confusing a Cat sketch by
Monty Python...

hakank@p038:~> mkdir test
hakank@p038:~> cd test
hakank@p038:~/test> svnadmin create testrepo
hakank@p038:~/test> svn co file:///home/hakank/testrepo
hakank@p038:~/test> mkdir test
hakank@p038:~/test> cd test
hakank@p038:~/test/test> svn co file:///home/hakank/test/testrepo .
Checked out revision 0.
hakank@p038:~/test/test> mkdir a1
hakank@p038:~/test/test> mkdir a2
hakank@p038:~/test/test> svn add a1
A         a1
hakank@p038:~/test/test> svn commit -m "dir a1 added"
Adding         a1
Committed revision 1.
hakank@p038:~/test/test> svn add a2
A         a2
hakank@p038:~/test/test> svn commit -m "dir a2 added"
Adding         a2
Committed revision 2.

hakank@p038:~/test/test> ls -la
total 20
drwxr-xr-x    5 hakank   users        4096 2004-12-08 14:59 .
drwxr-xr-x    4 hakank   users        4096 2004-12-08 14:59 ..
drwxr-xr-x    3 hakank   users        4096 2004-12-08 14:59 a1
drwxr-xr-x    3 hakank   users        4096 2004-12-08 14:59 a2
drwxr-xr-x    7 hakank   users        4096 2004-12-08 15:00 .svn
hakank@p038:~/test/test> svn move a2 a1
A         a1/a2
D         a2
hakank@p038:~/test/test> svn commit -m "moving a2 into a1"
Adding         a1/a2
Deleting       a2
Committed revision 3.
hakank@p038:~/test/test> svn status
hakank@p038:~/test/test> svn del a1 a2
D         a1/a2
D         a1
hakank@p038:~/test/test> svn commit -m "bzzt"
Deleting       a1
svn: Commit failed (details follow):
svn: Out of date: 'a1' in transaction '4'

I did commit everything I had on the working copy before deciding to
delete it. Why did deleting a1 fail? What is it trying to do with my
delete "a2" request?
Continuing with the saga:

hakank@p038:~/test/test> svn revert a1
Reverted 'a1'
hakank@p038:~/test/test> svn status
D      a1/a2
hakank@p038:~/test/test> svn commit -m "bzzt??"
Deleting       a1/a2

Committed revision 4.
hakank@p038:~/test/test> ls
a1
hakank@p038:~/test/test> svn del a1
D         a1
hakank@p038:~/test/test> svn commit -m "finally..."
Deleting       a1
svn: Commit failed (details follow):
svn: Out of date: 'a1' in transaction '8'

OK, annoyed, here I go:
akank@p038:~/test/test> rm -rf a1
hakank@p038:~/test/test> svn commit -m "finally...???"
Deleting       a1

Committed revision 5.

Isn't this a little bit strange?

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

Re: Confusing a local wc

Posted by Ben Collins-Sussman <su...@collab.net>.
On Dec 8, 2004, at 9:14 AM, Hakan Koseoglu wrote:
>
> hakank@p038:~/test/test> svn commit -m "bzzt"
> Deleting       a1
> svn: Commit failed (details follow):
> svn: Out of date: 'a1' in transaction '4'
>
> I did commit everything I had on the working copy before deciding to
> delete it. Why did deleting a1 fail? What is it trying to do with my
> delete "a2" request?

Because you're not allowed to commit the deletion of a directory if the 
directory's working-rev isn't HEAD.  See the end of chapter 2, "the 
limitation of mixed-revisions" for an explanation.  It's one of two 
restrictions related to directory versioning.


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