Show More
@@ -170,7 +170,7 b' class eolfile(object):' | |||||
170 |
|
170 | |||
171 | def checkrev(self, repo, ctx, files): |
|
171 | def checkrev(self, repo, ctx, files): | |
172 | failed = [] |
|
172 | failed = [] | |
173 | for f in files: |
|
173 | for f in (files or ctx.files()): | |
174 | if f not in ctx: |
|
174 | if f not in ctx: | |
175 | continue |
|
175 | continue | |
176 | for pattern, style in self.cfg.items('patterns'): |
|
176 | for pattern, style in self.cfg.items('patterns'): | |
@@ -207,10 +207,10 b' def _checkhook(ui, repo, node, headsonly' | |||||
207 | files = set() |
|
207 | files = set() | |
208 | revs = set() |
|
208 | revs = set() | |
209 | for rev in xrange(repo[node].rev(), len(repo)): |
|
209 | for rev in xrange(repo[node].rev(), len(repo)): | |
210 | ctx = repo[rev] |
|
|||
211 | files.update(ctx.files()) |
|
|||
212 | revs.add(rev) |
|
210 | revs.add(rev) | |
213 | if headsonly: |
|
211 | if headsonly: | |
|
212 | ctx = repo[rev] | |||
|
213 | files.update(ctx.files()) | |||
214 | for pctx in ctx.parents(): |
|
214 | for pctx in ctx.parents(): | |
215 | revs.discard(pctx.rev()) |
|
215 | revs.discard(pctx.rev()) | |
216 | failed = [] |
|
216 | failed = [] |
General Comments 0
You need to be logged in to leave comments.
Login now