##// END OF EJS Templates
fastannotate: fix isinstance checks to be against bytes instead of str...
Augie Fackler -
r41297:1198c86b default
parent child Browse files
Show More
@@ -602,7 +602,7 b' class _annotatecontext(object):'
602 the best case, the user provides a node and we don't need to read the
602 the best case, the user provides a node and we don't need to read the
603 filelog or construct any filecontext.
603 filelog or construct any filecontext.
604 """
604 """
605 if isinstance(f, str):
605 if isinstance(f, bytes):
606 hsh = f
606 hsh = f
607 else:
607 else:
608 hsh = f.node()
608 hsh = f.node()
@@ -625,7 +625,7 b' class _annotatecontext(object):'
625 if showpath:
625 if showpath:
626 result = self._addpathtoresult(result)
626 result = self._addpathtoresult(result)
627 if showlines:
627 if showlines:
628 if isinstance(f, str): # f: node or fctx
628 if isinstance(f, bytes): # f: node or fctx
629 llrev = self.revmap.hsh2rev(f)
629 llrev = self.revmap.hsh2rev(f)
630 fctx = self._resolvefctx(f, self.revmap.rev2path(llrev))
630 fctx = self._resolvefctx(f, self.revmap.rev2path(llrev))
631 else:
631 else:
General Comments 0
You need to be logged in to leave comments. Login now