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):
|
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():
|
||||||
|
Loading…
Reference in New Issue
Block a user