Skip to content
Snippets Groups Projects
Commit 1198c86b authored by Augie Fackler's avatar Augie Fackler
Browse files

fastannotate: fix isinstance checks to be against bytes instead of str

Differential Revision: https://phab.mercurial-scm.org/D5611
parent c146651a
Branches
Tags
No related merge requests found
......@@ -602,7 +602,7 @@
the best case, the user provides a node and we don't need to read the
filelog or construct any filecontext.
"""
if isinstance(f, str):
if isinstance(f, bytes):
hsh = f
else:
hsh = f.node()
......@@ -625,7 +625,7 @@
if showpath:
result = self._addpathtoresult(result)
if showlines:
if isinstance(f, str): # f: node or fctx
if isinstance(f, bytes): # f: node or fctx
llrev = self.revmap.hsh2rev(f)
fctx = self._resolvefctx(f, self.revmap.rev2path(llrev))
else:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment