You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Markus Schoder <li...@gammarayburst.de> on 2003/09/27 09:15:50 UTC
svn copy locks WC permanently
I am new to using svn and through a misunderstanding issued the
following sequence of commands in a working copy directory (were
`Makefile' is under revision control):
$ rm Makefile
$ svn copy file://$HOME/svnrep/trunk/p2phub/Makefile .
subversion/libsvn_wc/log.c:294: (apr_err=155009)
svn: Problem running log
svn: in directory ''
subversion/libsvn_wc/log.c:1179: (apr_err=155009)
svn: start_handler: error processing command 'modify-entry' in ''
subversion/libsvn_wc/log.c:518: (apr_err=155009)
svn: error merge_syncing entry 'Makefile'
subversion/libsvn_wc/entries.c:1409: (apr_err=155013)
svn: Unmergeable scheduling requested on an entry
svn: fold_state_changes: Entry 'Makefile' already under revision control
-- Seeing the wrongness of my ways I tried
$ svn update Makefile
svn: Attempted to lock an already-locked dir
svn: working copy locked: .
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
details)
$ svn cleanup
subversion/libsvn_wc/log.c:294: (apr_err=155009)
svn: Problem running log
svn: in directory ''
subversion/libsvn_wc/log.c:1179: (apr_err=155009)
svn: start_handler: error processing command 'modify-entry' in ''
subversion/libsvn_wc/log.c:518: (apr_err=155009)
svn: error merge_syncing entry 'Makefile'
subversion/libsvn_wc/entries.c:1409: (apr_err=155013)
svn: Unmergeable scheduling requested on an entry
svn: fold_state_changes: Entry 'Makefile' already under revision control
$ svn update Makefile
svn: Attempted to lock an already-locked dir
svn: working copy locked: .
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)
So the WC is locked and cleanup does not help. I removed the WC and
checked out a new one which solved the problem.
Obviously the copy command did not make any sense in the first place
but I think svn should recover gracefully and keep the WC intact.
This was with svn version 0.30.0.
--
Markus
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Re: svn copy locks WC permanently
Posted by Philip Martin <ph...@codematters.co.uk>.
Markus Schoder <li...@gammarayburst.de> writes:
> $ rm Makefile
> $ svn copy file://$HOME/svnrep/trunk/p2phub/Makefile .
> So the WC is locked and cleanup does not help. I removed the WC and
> checked out a new one which solved the problem.
>
> Obviously the copy command did not make any sense in the first place
> but I think svn should recover gracefully and keep the WC intact.
>
> This was with svn version 0.30.0.
Yes, that's a bug. Here's a complete recipe
$ svnadmin create repo
$ svn import svn-config file://`pwd`/repo/foo
$ svn co file://`pwd`/repo wc
$ rm wc/foo
$ svn cp file://`pwd`/repo/foo wc
$ svn st wc
L wc
! wc/foo
$ svn cleanup wc
../svn/subversion/libsvn_wc/log.c:294: (apr_err=155009)
svn: Problem running log
svn: in directory 'wc'
../svn/subversion/libsvn_wc/log.c:1179: (apr_err=155009)
svn: start_handler: error processing command 'modify-entry' in 'wc'
../svn/subversion/libsvn_wc/log.c:518: (apr_err=155009)
svn: error merge_syncing entry 'foo'
../svn/subversion/libsvn_wc/entries.c:1409: (apr_err=155013)
svn: Unmergeable scheduling requested on an entry
svn: fold_state_changes: Entry 'foo' already under revision control
--
Philip Martin
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org