mercurial/scmutil.py
changeset 23427 3778884197f0
parent 23371 1df6519eb3ab
child 23481 94091ab9d112
--- a/mercurial/scmutil.py	Mon Dec 01 19:34:11 2014 -0600
+++ b/mercurial/scmutil.py	Mon Dec 01 21:48:32 2014 -0800
@@ -732,9 +732,9 @@
         if repo.ui.verbose or not m.exact(abs):
             rel = m.rel(abs)
             if abs in unknownset:
-                status = _('adding %s\n') % ((pats and rel) or abs)
+                status = _('adding %s\n') % ((m.anypats() and rel) or abs)
             else:
-                status = _('removing %s\n') % ((pats and rel) or abs)
+                status = _('removing %s\n') % ((m.anypats() and rel) or abs)
             repo.ui.status(status)
 
     renames = _findrenames(repo, m, added + unknown, removed + deleted,