--- a/hgext/fastannotate/context.py Sun May 29 12:38:54 2022 +0200
+++ b/hgext/fastannotate/context.py Sun May 29 15:17:27 2022 +0200
@@ -75,7 +75,7 @@
linecount = text.count(b'\n')
if text and not text.endswith(b'\n'):
linecount += 1
- return ([(fctx, i) for i in pycompat.xrange(linecount)], text)
+ return ([(fctx, i) for i in range(linecount)], text)
# extracted from mercurial.context.basefilectx.annotate. slightly modified
@@ -577,7 +577,7 @@
result = [None] * len(annotateresult)
# {(rev, linenum): [lineindex]}
key2idxs = collections.defaultdict(list)
- for i in pycompat.xrange(len(result)):
+ for i in range(len(result)):
key2idxs[(revs[i], annotateresult[i][1])].append(i)
while key2idxs:
# find an unresolved line and its linelog rev to annotate