mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 00:14:35 +03:00
localrepo: drop force check from checkcommitpatterns
It was retained to make the code movement clearer
This commit is contained in:
parent
f2c255b594
commit
ab5c7033f1
@ -1479,8 +1479,7 @@ class localrepository(object):
|
||||
|
||||
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():
|
||||
|
Loading…
Reference in New Issue
Block a user