diff tests/test-fileset.t @ 17366:04c65cb59467 stable

fileset: matchctx.existing() must consider unknown files By default, unknown files are ignored. If the 'unknown()' predicate appears in the syntax tree, then they are taken in account. Unfortunately, matchctx.existing() was filtering against non-deleted context files, which does not include unknown files. So: $ hg debugfileset 'binary() and unknown()' would not return existing binary unknown files.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 15 Aug 2012 22:29:09 +0200
parents 8a0513bf030a
children ce625185cfd9
line wrap: on
line diff
--- a/tests/test-fileset.t	Wed Aug 15 21:44:00 2012 +0200
+++ b/tests/test-fileset.t	Wed Aug 15 22:29:09 2012 +0200
@@ -80,4 +80,9 @@
 
   >>> file('bin', 'wb').write('\0a')
   $ fileset 'binary()'
+  $ fileset 'binary() and unknown()'
+  bin
+  $ hg add bin
+  $ fileset 'binary()'
+  bin