You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Erik Huelsmann <eh...@gmail.com> on 2005/12/03 11:12:23 UTC

Issue #2425: reverting obstructed schedule add dir breaks wc

Philip,

I may be completely misunderstanding, but in the issue you give this
reproduction recipe (line numbers are mine):

--------------------
1 svnadmin create repo
2 svn co file://`pwd`/repo wc
3 svn mkdir wc/foo
4 rm -rf wc/foo/.svn                  # or rm -rf wc/foo && touch wc/foo
5 svn revert wc/foo

6 Now 'svn st wc' gives

../svn/subversion/libsvn_wc/lock.c:377: (apr_err=155007)
svn: 'wc' is not a working copy

--------------------

Which concludes with:

======  The wc/foo revert has removed the wc admin directory.

But: if I read the transcript well, you have removed the .svn area
yourself at line 4, so, it's not really a surprise that line 6 gives
an error, is it?

Also, the issue summary says 'reverting ... schedule add'; in your
repro case, I see nothing being scheduled for addition...


Could you explain, please?

Thanks!

bye,

Erik.

Re: Issue #2425: reverting obstructed schedule add dir breaks wc

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Sat, Dec 03, 2005 at 12:12:23PM +0100, Erik Huelsmann wrote:
> 1 svnadmin create repo
> 2 svn co file://`pwd`/repo wc
> 3 svn mkdir wc/foo
> 4 rm -rf wc/foo/.svn                  # or rm -rf wc/foo && touch wc/foo
> 5 svn revert wc/foo
> 
> 6 Now 'svn st wc' gives
> 
> ../svn/subversion/libsvn_wc/lock.c:377: (apr_err=155007)
> svn: 'wc' is not a working copy
> 
> --------------------
> 
> Which concludes with:
> 
> ======  The wc/foo revert has removed the wc admin directory.
> 
> But: if I read the transcript well, you have removed the .svn area
> yourself at line 4, so, it's not really a surprise that line 6 gives
> an error, is it?
> 
> Also, the issue summary says 'reverting ... schedule add'; in your
> repro case, I see nothing being scheduled for addition...
> 

I'm not Philip, and I've not tried this myself, but:

At line 4, wc/foo is a schedule-add directory.  Line 4 removes the .svn
directory, converting it into an 'obstructed' schedule add (not really
obstructed, since that's normally where there's something in the wc that
blocks a repos-wc change, from what I understood).  As the comment notes,
replacing the schedule-add directory with a file should do the same thing.

The problem in line 5 isn't that it's removing the admin directory from
wc/foo (which is done in line 4), it's that it's removing the admin
directory from wc/ itself!  (which is a little weird).

Regards,
Malcolm

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