diff tests/test-subrepo-git.t @ 24943:3e39f67ef663

subrepo: correctly handle git subdirectory status change 'git diff-index' by default does not recurse into subdirectories when changes are found. As a result, the directory is shown as changed, rather than the files in this directory. Adding '-r' results in recursing until the blobs themselves are checked.
author Mathias De Maré <mathias.demare@gmail.com>
date Wed, 06 May 2015 17:15:38 +0200
parents 41cd8171e58f
children 5115d03440f4
line wrap: on
line diff
--- a/tests/test-subrepo-git.t	Wed May 06 16:56:28 2015 -0500
+++ b/tests/test-subrepo-git.t	Wed May 06 17:15:38 2015 +0200
@@ -1105,5 +1105,21 @@
   ? s/c.c
   ? s/cpp.cpp
   ? s/foobar.orig
+  $ hg revert --all -q
+
+make sure we show changed files, rather than changed subtrees
+  $ mkdir s/foo
+  $ touch s/foo/bwuh
+  $ hg add s/foo/bwuh
+  $ hg commit -S -m "add bwuh"
+  committing subrepository s
+  $ hg status -S --change .
+  M .hgsubstate
+  A s/foo/bwuh
+  ? s/barfoo
+  ? s/c.c
+  ? s/cpp.cpp
+  ? s/foobar.orig
+  ? s/snake.python.orig
 
   $ cd ..