localrepo: drop force check from checkcommitpatterns

It was retained to make the code movement clearer
This commit is contained in:
timeless 2016-04-06 18:08:38 +00:00
parent f2c255b594
commit ab5c7033f1

View File

@ -1479,8 +1479,7 @@ class localrepository(object):
def checkcommitpatterns(self, wctx, vdirs, match, status, fail): def checkcommitpatterns(self, wctx, vdirs, match, status, fail):
"""check for commit arguments that aren't commitable""" """check for commit arguments that aren't commitable"""
force = False if match.isexact() or match.prefix():
if not force and (match.isexact() or match.prefix()):
matched = set(status.modified + status.added + status.removed) matched = set(status.modified + status.added + status.removed)
for f in match.files(): for f in match.files():