mercurial/cmdutil.py
changeset 41694 5d383d9636d0
parent 41675 0cbf491db7ee
child 41696 b81ecf3571d5
--- a/mercurial/cmdutil.py	Fri Feb 08 18:26:35 2019 +0100
+++ b/mercurial/cmdutil.py	Tue Feb 12 17:10:31 2019 -0500
@@ -1961,7 +1961,10 @@
                 else:
                     self.revs.discard(value)
                     ctx = change(value)
-                    matches = [f for f in ctx.files() if match(f)]
+                    if allfiles:
+                        matches = list(ctx.manifest().walk(match))
+                    else:
+                        matches = [f for f in ctx.files() if match(f)]
                     if matches:
                         fncache[value] = matches
                         self.set.add(value)