Mercurial > hg
comparison mercurial/cmdutil.py @ 45648:3a024d7cd08e
cmdutil: make walkchangerevs() call prepare with matcher instead of filenames
Prepares for migrating walkchangerevs() to logcmdutil's logic, which provides
matcher-based interface.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 10 Sep 2020 16:14:48 +0900 |
parents | 03726f5b6092 |
children | 0356b41fe01d |
comparison
equal
deleted
inserted
replaced
45647:9fead7d97069 | 45648:3a024d7cd08e |
---|---|
2572 for f in ctx.files(): | 2572 for f in ctx.files(): |
2573 if match(f): | 2573 if match(f): |
2574 yield f | 2574 yield f |
2575 | 2575 |
2576 fns = fns_generator() | 2576 fns = fns_generator() |
2577 prepare(ctx, fns) | 2577 prepare(ctx, scmutil.matchfiles(repo, fns)) |
2578 for rev in nrevs: | 2578 for rev in nrevs: |
2579 yield change(rev) | 2579 yield change(rev) |
2580 | 2580 |
2581 if stopiteration: | 2581 if stopiteration: |
2582 break | 2582 break |