##// END OF EJS Templates
unionrepo: avoid unnecessary node -> rev conversion
Jun Wu -
r31724:f1e0446e default
parent child Browse files
Show More
@@ -90,8 +90,7 class unionrevlog(revlog.revlog):
90 90 elif rev1 <= self.repotiprev and rev2 <= self.repotiprev:
91 91 return self.baserevdiff(rev1, rev2)
92 92
93 return mdiff.textdiff(self.revision(self.node(rev1)),
94 self.revision(self.node(rev2)))
93 return mdiff.textdiff(self.revision(rev1), self.revision(rev2))
95 94
96 95 def revision(self, nodeorrev, raw=False):
97 96 """return an uncompressed revision of a given node or revision
@@ -40,12 +40,6 New errors are not allowed. Warnings are
40 40 > policy = os.environ.get('HGMODULEPOLICY', policy)
41 41 use encoding.environ instead (py3)
42 42 Skipping mercurial/statprof.py it has no-che?k-code (glob)
43 mercurial/unionrepo.py:93:
44 > return mdiff.textdiff(self.revision(self.node(rev1)),
45 don't covert rev to node before passing to revision(nodeorrev)
46 mercurial/unionrepo.py:94:
47 > self.revision(self.node(rev2)))
48 don't covert rev to node before passing to revision(nodeorrev)
49 43 [1]
50 44
51 45 @commands in debugcommands.py should be in alphabetical order.
General Comments 0
You need to be logged in to leave comments. Login now