mercurial/localrepo.py
changeset 28814 1f65f291a5b7
parent 28813 d77b790bd8d6
child 28876 79b8f052ee51
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: