diff tests/test-fileset.t @ 17365:8a0513bf030a stable

fileset: exclude deleted files from matchctx.existing() Running: $ hg debugfileset 'binary()' would traceback if there were one deleted file in the working directory. It happened because matchctx.existing() was filtering files against the ctx.__contains__() but deleted files are still considered part of workingctx.
author Patrick Mezard <patrick@mezard.eu>
date Wed, 15 Aug 2012 21:44:00 +0200
parents 0c41fb2d972a
children 04c65cb59467
line wrap: on
line diff
--- a/tests/test-fileset.t	Wed Aug 15 18:04:50 2012 +0200
+++ b/tests/test-fileset.t	Wed Aug 15 21:44:00 2012 +0200
@@ -76,3 +76,8 @@
   $ fileset 'copied()'
   c1
 
+Test files properties
+
+  >>> file('bin', 'wb').write('\0a')
+  $ fileset 'binary()'
+