comparison hgext/mq.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 7041869a1bf6
children c80af96943aa
comparison
equal deleted inserted replaced
5052:a11e8a181bd5 5053:47a8ea1eb2c3
453 finally: 453 finally:
454 repo.invalidate() 454 repo.invalidate()
455 repo.dirstate.invalidate() 455 repo.dirstate.invalidate()
456 raise 456 raise
457 finally: 457 finally:
458 del lock, wlock, tr 458 del tr, lock, wlock
459 459
460 def _apply(self, repo, series, list=False, update_status=True, 460 def _apply(self, repo, series, list=False, update_status=True,
461 strict=False, patchdir=None, merge=None, all_files={}): 461 strict=False, patchdir=None, merge=None, all_files={}):
462 # TODO unify with commands.py 462 # TODO unify with commands.py
463 if not patchdir: 463 if not patchdir: