[MERGE] Cleanups for fallback repos and stacking
John Arbash Meinel
john at arbash-meinel.com
Wed May 27 10:37:25 BST 2009
-----BEGIN PGP SIGNED MESSAGE-----
As part of trying to get GC to work with stacking, Andrew and I ran into
some bugs with RemoteRepository and fallback repos.
This patch is mostly about clarifying the contracts of locking and
The final statement we came up with for fallback repositories was:
1) When transitioning from unlocked => locked, a repo will lock its
2) When transitioning from locked => unlocked, a repo will unlock its
3) If self.is_locked(), add_fallback_repository() will lock the fallback
repo, which will match (2) when self is finally unlocked.
Callers of add_fallback_repository() maintain their responsibility to
match every lock that they perform with a corresponding unlock.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
More information about the bazaar