mercurial/cmdutil.py
changeset 28449 3072ce740945
parent 28428 6a4a4ca21907
parent 28387 97175d9bf7cf
child 28451 c90cfe76e024
--- a/mercurial/cmdutil.py	Fri Mar 11 04:14:54 2016 +0900
+++ b/mercurial/cmdutil.py	Fri Mar 11 15:24:27 2016 -0600
@@ -2374,14 +2374,15 @@
 
     for subpath in sorted(ctx.substate):
         def matchessubrepo(subpath):
-            return (m.always() or m.exact(subpath)
+            return (m.exact(subpath)
                     or any(f.startswith(subpath + '/') for f in m.files()))
 
         if subrepos or matchessubrepo(subpath):
             sub = ctx.sub(subpath)
             try:
                 submatch = matchmod.subdirmatcher(subpath, m)
-                if sub.printfiles(ui, submatch, fm, fmt, subrepos) == 0:
+                recurse = m.exact(subpath) or subrepos
+                if sub.printfiles(ui, submatch, fm, fmt, recurse) == 0:
                     ret = 0
             except error.LookupError:
                 ui.status(_("skipping missing subrepository: %s\n")