##// END OF EJS Templates
mq: avoid using revlog.nodemap unnecessarily
Matt Mackall -
r13256:996b9598 default
parent child Browse files
Show More
@@ -2942,7 +2942,7 b' def reposetup(ui, repo):'
2942
2942
2943 mqtags = [(patch.node, patch.name) for patch in q.applied]
2943 mqtags = [(patch.node, patch.name) for patch in q.applied]
2944
2944
2945 if mqtags[-1][0] not in self.changelog.nodemap:
2945 if mqtags[-1][0] not in self:
2946 self.ui.warn(_('mq status file refers to unknown node %s\n')
2946 self.ui.warn(_('mq status file refers to unknown node %s\n')
2947 % short(mqtags[-1][0]))
2947 % short(mqtags[-1][0]))
2948 return result
2948 return result
@@ -2967,7 +2967,7 b' def reposetup(ui, repo):'
2967
2967
2968 cl = self.changelog
2968 cl = self.changelog
2969 qbasenode = q.applied[0].node
2969 qbasenode = q.applied[0].node
2970 if qbasenode not in cl.nodemap:
2970 if qbasenode not in self:
2971 self.ui.warn(_('mq status file refers to unknown node %s\n')
2971 self.ui.warn(_('mq status file refers to unknown node %s\n')
2972 % short(qbasenode))
2972 % short(qbasenode))
2973 return super(mqrepo, self)._branchtags(partial, lrev)
2973 return super(mqrepo, self)._branchtags(partial, lrev)
General Comments 0
You need to be logged in to leave comments. Login now