diff options
author | Lorry Tar Creator <lorry-tar-importer@baserock.org> | 2011-10-01 20:49:36 +0000 |
---|---|---|
committer | Lorry <lorry@roadtrain.codethink.co.uk> | 2012-09-27 13:27:51 +0000 |
commit | 921ced43c48c1d170452a7b251b94cc96ec8dd44 (patch) | |
tree | 3c4a89176ea67fe4c7bf7b375488361a823c95fa /mercurial/lock.py | |
parent | 9039c805b0a7e36220101323f82735f08a104b37 (diff) | |
download | mercurial-tarball-master.tar.gz |
Imported from /srv/lorry/lorry-area/mercurial-tarball/mercurial-1.9.3.tar.gz.HEADmercurial-1.9.3master
Diffstat (limited to 'mercurial/lock.py')
-rw-r--r-- | mercurial/lock.py | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/mercurial/lock.py b/mercurial/lock.py index cc2c533..bf33f02 100644 --- a/mercurial/lock.py +++ b/mercurial/lock.py @@ -35,7 +35,6 @@ class lock(object): self.timeout = timeout self.releasefn = releasefn self.desc = desc - self.postrelease = [] self.lock() def __del__(self): @@ -120,10 +119,6 @@ class lock(object): return locker def release(self): - """release the lock and execute callback function if any - - If the lock have been aquired multiple time, the actual release is - delayed to the last relase call.""" if self.held > 1: self.held -= 1 elif self.held == 1: @@ -134,10 +129,9 @@ class lock(object): util.unlink(self.f) except OSError: pass - for callback in self.postrelease: - callback() def release(*locks): for lock in locks: if lock is not None: lock.release() + |