equal
deleted
inserted
replaced
264 def _checkhook(ui, repo, node, headsonly): |
264 def _checkhook(ui, repo, node, headsonly): |
265 # Get revisions to check and touched files at the same time |
265 # Get revisions to check and touched files at the same time |
266 ensureenabled(ui) |
266 ensureenabled(ui) |
267 files = set() |
267 files = set() |
268 revs = set() |
268 revs = set() |
269 for rev in xrange(repo[node].rev(), len(repo)): |
269 for rev in pycompat.xrange(repo[node].rev(), len(repo)): |
270 revs.add(rev) |
270 revs.add(rev) |
271 if headsonly: |
271 if headsonly: |
272 ctx = repo[rev] |
272 ctx = repo[rev] |
273 files.update(ctx.files()) |
273 files.update(ctx.files()) |
274 for pctx in ctx.parents(): |
274 for pctx in ctx.parents(): |