Can't push after failed attempt using SFTP - lock on file prevents it

David Clymer david at zettazebra.com
Sun Jul 16 23:31:44 BST 2006


On Sun, 2006-07-16 at 13:43 -0300, Demetrius Nunes wrote:
> Hi folks,
> 
> I am working with ActiveRDF and I've tried to push my branch using
> SFTP but the transfer failed in the middle of the process.
> 
> After that, when I try to do it I get:
> 
> ~/dev/hyperde/branches/ar/lib/activerdf $ bzr push
> Using saved location: sftp://dema@m3pe.org/public_html/activerdf
> Password:
> bzr: WARNING: Unable to update the working tree of:
> sftp://dema@m3pe.org/public_html/activerdf
> bzr: ERROR: bzrlib.errors.LockError: File '.bzr/branch-lock' already locked
>   at /opt/local/lib/python2.4/site-packages/bzrlib/transport/sftp.py line 205
>   in __init__
> 
> I could not find a way to get around that.
> 
> In Subversion there is a "cleanup" command. Is there any equivalent for bzr?
> 

I think the break-lock command is what you are looking for:

david at zepto:~$ bzr break-lock --help
usage: bzr break-lock [LOCATION]

Break a dead lock on a repository, branch or working directory.

CAUTION: Locks should only be broken when you are sure that the process
holding the lock has been stopped.

You can get information on what locks are open via the 'bzr info'
command.

example:
    bzr break-lock

options:
    --help, -h                show help message


-davidc
-- 
gpg-key: http://www.zettazebra.com/files/key.gpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20060716/89d38ebc/attachment.pgp 


More information about the bazaar mailing list