[PATCH] automatic upgrade to lockdir

Aaron Bentley aaron.bentley at utoronto.ca
Sat Mar 11 15:20:50 GMT 2006


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

David Allouche wrote:
| Those, like me, eagerly tracking bzr.dev and playing with the latest
| repository shininess might have noticed that metadir has recently
| switched from lockfile locking to lockdir locking without (apparently)
| providing any transition support.

Right.  I think that's okay, given that it's a devel branch.  The
formats are hard to produce in the UI.

| As a result, I get plenty of FileExists errors when the lockdir code
| tries to mkdir within the existing lockfile. The following patch catches
| that error and tries (with minimal checks) to upgrade the lockfile to
| lockdir.

The patch looks okay, codewise, but maybe this would be better as a script?

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

iD8DBQFEEurS0F+nu1YWqI0RAnaPAJ9EzMqGvB3WHBXpGQCiL8UUS1pWrgCdEQdx
cPtLfqycuazcjIkCs7QMB54=
=V516
-----END PGP SIGNATURE-----




More information about the bazaar mailing list