[MERGE] Stop treating Permission Denied as lock contention

Aaron Bentley aaron.bentley at utoronto.ca
Wed Jan 31 18:51:53 GMT 2007


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

Hi all,

Currently, bzr treats "Permission Denied" as lock contention.  This is
bad, because it means that bzr will wait on a lock that will never be
released.  (Barring an external chmod, etc.)  Treating all PathErrors as
lock contention is a change originally introduced to support SFTP better.

This bundle causes "Permission Denied" to specifically be permitted,
while other classes derived from PathError continue to be treated as
lock contention.

This bundle should probably be tested on win32 before we apply it,
because win32 is known be be a bit weird about the "permission denied"
error code.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFFwOVJ0F+nu1YWqI0RAkL8AJ4vWxYG/UZQaer8c7seRUQHC+r9yACcD2CB
kZq/jPe72pfOPIbg+r8m4N0=
=+5fa
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lock-permissions.patch
Type: text/x-patch
Size: 2170 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20070131/1beffd18/attachment-0001.bin 


More information about the bazaar mailing list