##// 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 602 the best case, the user provides a node and we don't need to read the
603 603 filelog or construct any filecontext.
604 604 """
605 if isinstance(f, str):
605 if isinstance(f, bytes):
606 606 hsh = f
607 607 else:
608 608 hsh = f.node()
@@ -625,7 +625,7 b' class _annotatecontext(object):'
625 625 if showpath:
626 626 result = self._addpathtoresult(result)
627 627 if showlines:
628 if isinstance(f, str): # f: node or fctx
628 if isinstance(f, bytes): # f: node or fctx
629 629 llrev = self.revmap.hsh2rev(f)
630 630 fctx = self._resolvefctx(f, self.revmap.rev2path(llrev))
631 631 else:
General Comments 0
You need to be logged in to leave comments. Login now