# HG changeset patch # User Matt Mackall # Date 2011-01-11 23:06:07 # Node ID 996b95985c2f6183ac097356f53328d041af384f # Parent 2696730ca233b8d9c8ad0e4168c6cd4154bd8f95 mq: avoid using revlog.nodemap unnecessarily diff --git a/hgext/mq.py b/hgext/mq.py --- a/hgext/mq.py +++ b/hgext/mq.py @@ -2942,7 +2942,7 @@ def reposetup(ui, repo): mqtags = [(patch.node, patch.name) for patch in q.applied] - if mqtags[-1][0] not in self.changelog.nodemap: + if mqtags[-1][0] not in self: self.ui.warn(_('mq status file refers to unknown node %s\n') % short(mqtags[-1][0])) return result @@ -2967,7 +2967,7 @@ def reposetup(ui, repo): cl = self.changelog qbasenode = q.applied[0].node - if qbasenode not in cl.nodemap: + if qbasenode not in self: self.ui.warn(_('mq status file refers to unknown node %s\n') % short(qbasenode)) return super(mqrepo, self)._branchtags(partial, lrev)