comparison mercurial/localrepo.py @ 28814:1f65f291a5b7

localrepo: drop force check from checkcommitpatterns It was retained to make the code movement clearer
author timeless <timeless@mozdev.org>
date Wed, 06 Apr 2016 18:08:38 +0000
parents d77b790bd8d6
children 79b8f052ee51
comparison
equal deleted inserted replaced
28813:d77b790bd8d6 28814:1f65f291a5b7
1477 1477
1478 return fparent1 1478 return fparent1
1479 1479
1480 def checkcommitpatterns(self, wctx, vdirs, match, status, fail): 1480 def checkcommitpatterns(self, wctx, vdirs, match, status, fail):
1481 """check for commit arguments that aren't commitable""" 1481 """check for commit arguments that aren't commitable"""
1482 force = False 1482 if match.isexact() or match.prefix():
1483 if not force and (match.isexact() or match.prefix()):
1484 matched = set(status.modified + status.added + status.removed) 1483 matched = set(status.modified + status.added + status.removed)
1485 1484
1486 for f in match.files(): 1485 for f in match.files():
1487 f = self.dirstate.normalize(f) 1486 f = self.dirstate.normalize(f)
1488 if f == '.' or f in matched or f in wctx.substate: 1487 if f == '.' or f in matched or f in wctx.substate: