comparison mercurial/localrepo.py @ 17378:b05e517c2236 stable

commit: normalize filenames when checking explicit files (issue3576)
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Aug 2012 14:37:59 -0500
parents 935831597e16
children e7cfe3587ea4
comparison
equal deleted inserted replaced
17374:0cec762790ed 17378:b05e517c2236
1310 # make sure all explicit patterns are matched 1310 # make sure all explicit patterns are matched
1311 if not force and match.files(): 1311 if not force and match.files():
1312 matched = set(changes[0] + changes[1] + changes[2]) 1312 matched = set(changes[0] + changes[1] + changes[2])
1313 1313
1314 for f in match.files(): 1314 for f in match.files():
1315 f = self.dirstate.normalize(f)
1315 if f == '.' or f in matched or f in wctx.substate: 1316 if f == '.' or f in matched or f in wctx.substate:
1316 continue 1317 continue
1317 if f in changes[3]: # missing 1318 if f in changes[3]: # missing
1318 fail(f, _('file not found!')) 1319 fail(f, _('file not found!'))
1319 if f in vdirs: # visited directory 1320 if f in vdirs: # visited directory