diff -r d77b790bd8d6 -r 1f65f291a5b7 mercurial/localrepo.py --- a/mercurial/localrepo.py Wed Apr 06 17:52:17 2016 +0000 +++ b/mercurial/localrepo.py Wed Apr 06 18:08:38 2016 +0000 @@ -1479,8 +1479,7 @@ def checkcommitpatterns(self, wctx, vdirs, match, status, fail): """check for commit arguments that aren't commitable""" - force = False - if not force and (match.isexact() or match.prefix()): + if match.isexact() or match.prefix(): matched = set(status.modified + status.added + status.removed) for f in match.files():