Mercurial > hg > mercurial-crew-with-dirclash
diff mercurial/localrepo.py @ 5053:47a8ea1eb2c3
del transaction before lock before wlock
This way rollbacks happen while the repo is still locked.
Deleting lock before wlock is not strictly necessary, but is
more consistent with the locking order.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Thu, 02 Aug 2007 01:56:08 -0300 |
parents | 49059086c634 |
children | 2ffe3e2a1ac2 |
line wrap: on
line diff
--- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -544,7 +544,7 @@ class localrepository(repo.repository): else: self.ui.warn(_("no rollback information available\n")) finally: - del wlock, lock + del lock, wlock def invalidate(self): for a in "changelog manifest".split(): @@ -820,7 +820,7 @@ class localrepository(repo.repository): self.hook("commit", node=hex(n), parent1=xp1, parent2=xp2) return n finally: - del lock, wlock, tr + del tr, lock, wlock def walk(self, node=None, files=[], match=util.always, badmatch=None): '''