Andrew Bennetts wrote:
> Andrew Bennetts has proposed merging lp:~spiv/bzr/debug-flag-relock into lp:bzr.
>
> Requested reviews:
> Martin Pool (mbp):
> Vincent Ladeuil (vila)
>
>
So do I understand correctly that this is only triggered when an object
*loses* the lock and then re-acquires it?
I agree that we should probably have a hook, or some sort of mechanism
for testing this, as it is worthwhile to test. Perhaps you could have a
global state in "lock" like our "symbol_versioning.warn" functionality?
review: approve
Subject to Martin/Vincent's vote, since they reviewed first.
John
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Andrew Bennetts wrote:
> Andrew Bennetts has proposed merging lp:~spiv/bzr/debug-flag-relock into lp:bzr.
>
> Requested reviews:
> Martin Pool (mbp):
> Vincent Ladeuil (vila)
>
>
So do I understand correctly that this is only triggered when an object
*loses* the lock and then re-acquires it?
So doing:
foo.lock_read()
foo.lock_read()
foo.unlock()
foo.unlock()
would not trigger it, but
foo.lock_read()
foo.unlock()
foo.lock_read()
foo.unlock()
would.
I agree that we should probably have a hook, or some sort of mechanism versioning. warn" functionality?
for testing this, as it is worthwhile to test. Perhaps you could have a
global state in "lock" like our "symbol_
review: approve
Subject to Martin/Vincent's vote, since they reviewed first.
John enigmail. mozdev. org/
=:->
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Using GnuPG with Mozilla - http://
iEYEARECAAYFAkr MmdwACgkQJdeBCY SNAAPRFwCgrTbQA jq8SDggQnngugjd yEpk nYVkn6zVPgQekcL cS
odkAoIaGHnfDPa0
=UHav
-----END PGP SIGNATURE-----