diff 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
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Sep 10 18:40:01 2020 +0900
+++ b/mercurial/cmdutil.py	Thu Sep 10 16:14:48 2020 +0900
@@ -2574,7 +2574,7 @@
                                     yield f
 
                     fns = fns_generator()
-                prepare(ctx, fns)
+                prepare(ctx, scmutil.matchfiles(repo, fns))
             for rev in nrevs:
                 yield change(rev)