diff tests/test-largefiles.t @ 16586:ebd2ead59f1c stable

largefiles: fix "hg status dir" missing regular files (issue3421) largefiles status implementation attemps to rewrite the input match objects to match the "standins" as well as the regular files. When fixing the directories listed in match.files(), if there was related standin entry, it was kept and the original path discarded. But directories can appear both as regular and standin entries.
author Patrick Mezard <patrick@mezard.eu>
date Sun, 06 May 2012 13:14:58 +0200
parents bb3334806ace
children 61e31cab7d93 5516fdf3fe24
line wrap: on
line diff
--- a/tests/test-largefiles.t	Sun May 06 10:36:32 2012 +0200
+++ b/tests/test-largefiles.t	Sun May 06 13:14:58 2012 +0200
@@ -65,6 +65,21 @@
   $ cat sub/large2
   large22
 
+Test status, subdir and unknown files
+
+  $ echo unknown > sub/unknown
+  $ hg st --all
+  ? sub/unknown
+  C large1
+  C normal1
+  C sub/large2
+  C sub/normal2
+  $ hg st --all sub
+  ? sub/unknown
+  C sub/large2
+  C sub/normal2
+  $ rm sub/unknown
+
 Remove both largefiles and normal files.
  
   $ hg remove normal1 large1