Maybe locking is a bzr thing....

Alexander Belchenko bialix at ukr.net
Mon Oct 15 05:53:02 BST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bruce Korb пишет:
> Since I am doing this on my work station and there is nobody else around,
> nobody else is using any locks.  There is no obvious way to break the lock.
> I've changed permissions for everything under /usr/lib/python2.4/site-packages
> to anybody can do anything, so it is no longer root-only stuff.
> 
> Any help getting this little archive down onto my system would be really
> appreciated.  Thank you. - Bruce
> 
> $ bzr get http://cdd.alioth.debian.org/bzr/simple-cdd/releases/simple-cdd-0.3.5/
> bzr: ERROR: Could not acquire lock [Errno 37] No locks available

"No locks available": because your files on /share I assume it's NFS or samba disk,
right? So problem here that bzr wants to have some file-locking mechanism
for your files on that disk. I don't know much about Linux, but probably
you need setup and run some locking support for shared disks.

As a ugly workaround you don't need to upgrade your working trees to latest
format, but use knits format instead. This format does not require file locks
and should just works.

> /usr/lib/python2.4/site-packages/bzrlib/lock.py:79: UserWarning: lock
> on <open file u'/share/st/devbk/simple-cdd-0.3.5/.bzr/checkout/dirstate',
> mode 'wb+' at 0xb7ad7e78> not released
>   warn("lock on %r not released" % self.f)
> /usr/lib/python2.4/site-packages/bzrlib/lockable_files.py:110:
> UserWarning: file group
> LockableFiles(<bzrlib.transport.local.LocalTransport
> url=file:///share/st/devbk/simple-cdd-0.3.5/.bzr/checkout/>) was not
> explicitly unlocked
>   warn("file group %r was not explicitly unlocked" % self)


2Martin, Robert, John: file locks must die. I will say it again and again.

- --
[µ]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHEvItzYr338mxwCURAslRAJ4+DGdut2Zc9sIyDY0crCdglTYluQCeJMOc
HJrCa/3UFcc7DBt8KEii6/I=
=kX2S
-----END PGP SIGNATURE-----



More information about the bazaar mailing list