comparison mercurial/commands.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 c0417a319e39
children 0f594cc36aed d5126a0172ba
comparison
equal deleted inserted replaced
5052:a11e8a181bd5 5053:47a8ea1eb2c3
1621 raise util.Abort(_('patch is damaged' + 1621 raise util.Abort(_('patch is damaged' +
1622 ' or loses information')) 1622 ' or loses information'))
1623 finally: 1623 finally:
1624 os.unlink(tmpname) 1624 os.unlink(tmpname)
1625 finally: 1625 finally:
1626 del wlock, lock 1626 del lock, wlock
1627 1627
1628 def incoming(ui, repo, source="default", **opts): 1628 def incoming(ui, repo, source="default", **opts):
1629 """show new changesets found in source 1629 """show new changesets found in source
1630 1630
1631 Show new changesets found in the specified path/URL or the default 1631 Show new changesets found in the specified path/URL or the default