Skip to content
Snippets Groups Projects
Commit 56e71e7d2ba2 authored by Patrick Mezard's avatar Patrick Mezard
Browse files

eol: no need to accumulate files when checking all changesets

Just check the files touched by the changesets.
parent 328ce8a405ac
No related branches found
No related tags found
No related merge requests found
......@@ -170,7 +170,7 @@
def checkrev(self, repo, ctx, files):
failed = []
for f in files:
for f in (files or ctx.files()):
if f not in ctx:
continue
for pattern, style in self.cfg.items('patterns'):
......@@ -207,7 +207,5 @@
files = set()
revs = set()
for rev in xrange(repo[node].rev(), len(repo)):
ctx = repo[rev]
files.update(ctx.files())
revs.add(rev)
if headsonly:
......@@ -212,5 +210,7 @@
revs.add(rev)
if headsonly:
ctx = repo[rev]
files.update(ctx.files())
for pctx in ctx.parents():
revs.discard(pctx.rev())
failed = []
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment