Mercurial > hg
comparison hgext/eol.py @ 49284:d44e3c45f0e4
py3: replace `pycompat.xrange` by `range`
author | Manuel Jacob <me@manueljacob.de> |
---|---|
date | Sun, 29 May 2022 15:17:27 +0200 |
parents | 642e31cb55f0 |
children | 981d2f132935 |
comparison
equal
deleted
inserted
replaced
49283:44b26349127b | 49284:d44e3c45f0e4 |
---|---|
307 def _checkhook(ui, repo, node, headsonly): | 307 def _checkhook(ui, repo, node, headsonly): |
308 # Get revisions to check and touched files at the same time | 308 # Get revisions to check and touched files at the same time |
309 ensureenabled(ui) | 309 ensureenabled(ui) |
310 files = set() | 310 files = set() |
311 revs = set() | 311 revs = set() |
312 for rev in pycompat.xrange(repo[node].rev(), len(repo)): | 312 for rev in range(repo[node].rev(), len(repo)): |
313 revs.add(rev) | 313 revs.add(rev) |
314 if headsonly: | 314 if headsonly: |
315 ctx = repo[rev] | 315 ctx = repo[rev] |
316 files.update(ctx.files()) | 316 files.update(ctx.files()) |
317 for pctx in ctx.parents(): | 317 for pctx in ctx.parents(): |