Mercurial > hg
comparison mercurial/fileset.py @ 27459:2f15253e415f
fileset: treat encoding and eol as the predicate calling _existing
Before this patch, predicate function 'encoding' and 'eol' aren't
listed up in '_existingcallers', even though they invoke 'existing()'.
This causes unexpected failure of these predicate, if there is a
(manually) deleted file in the working directory.
8a0513bf030a and 3ce3f2b059a1 seem to overlook putting already
existing 'encoding' or newly introduced 'eol' into '_existingcallers'.
This patch also changes order of fileset "eol(unix)" output in test,
because "existing caller" predicates show "A(dded)" files before
"C(lean)" ones.
author | FUJIWARA Katsunori <foozy@lares.dti.ne.jp> |
---|---|
date | Mon, 21 Dec 2015 22:31:16 +0900 |
parents | ceef5fb14872 |
children | 11286ac374f3 |
comparison
equal
deleted
inserted
replaced
27458:d39e743e3578 | 27459:2f15253e415f |
---|---|
508 return False | 508 return False |
509 | 509 |
510 # filesets using matchctx.existing() | 510 # filesets using matchctx.existing() |
511 _existingcallers = [ | 511 _existingcallers = [ |
512 'binary', | 512 'binary', |
513 'encoding', | |
514 'eol', | |
513 'exec', | 515 'exec', |
514 'grep', | 516 'grep', |
515 'size', | 517 'size', |
516 'symlink', | 518 'symlink', |
517 ] | 519 ] |