commit: avoid match.files() in conditions
See
9789b4a7c595 (match: introduce boolean prefix() method,
2014-10-28) for reasons to avoid match.files() in conditions.
--- a/mercurial/localrepo.py Tue May 19 11:35:43 2015 -0700
+++ b/mercurial/localrepo.py Tue May 19 11:36:05 2015 -0700
@@ -1444,7 +1444,7 @@
status.removed.insert(0, '.hgsubstate')
# make sure all explicit patterns are matched
- if not force and match.files():
+ if not force and (match.isexact() or match.prefix()):
matched = set(status.modified + status.added + status.removed)
for f in match.files():