[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Commit failed - locked

From: Dave Lawrence <dlawrence_at_ad-holdings.co.uk>
Date: Fri, 04 Jul 2008 12:25:30 +0100

Tim wrote:
> Hi,
>
> I'm pretty new to SVN and since a crash during a commit I keep getting
> the error:
>
> "Working copy 'a:\xyz\abc' is locked
> Please execute the "Cleanup" command."
>
> But when I execute the cleanup command at any level of the dir I get
> the error "Cleanup failed to process the following paths: -a:\xyz\abc"
>
> So I try running unlock all dirs but I get told there's nothing to
> unlock. I need to commit a few files that have changed to the repo, is
> that possible?
>
> I'm running TortoiseSVN 1.5 and VisualSVN inc Server.
>
> Tim

This generally happens if the SVN (or TSVN) process was terminated or
crashed, and yes generally I find the cleanup command is no help.
Here's what I do:

1) Try and determine what rev your w/c is checked out at -
file->properties->subversion should tell you this, but the picture may
be less clear if you have mixed revisions.

2) Check out a new w/c at the revision you've just determined

3) Create a patch from your broken w/c

4) Apply the patch to your new w/c

5) Continue using the new one. Delete the broken copy when you're
confident you no longer need it.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_tortoisesvn.tigris.org
For additional commands, e-mail: users-help_at_tortoisesvn.tigris.org
Received on 2008-07-04 13:25:56 CEST

This is an archived mail posted to the TortoiseSVN Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.