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
Received on Sat Dec 3 12:28:20 2005