diff tests/test-subrepo.t @ 42010:db26dbbee74d

diff: support diffing explicit files in subrepos Most other commands support implied recursion based on file names already.
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 21 Mar 2019 21:40:22 -0400
parents e4ac7e63c213
children 91a0bc50b288
line wrap: on
line diff
--- a/tests/test-subrepo.t	Thu Mar 21 18:27:09 2019 -0700
+++ b/tests/test-subrepo.t	Thu Mar 21 21:40:22 2019 -0400
@@ -1875,6 +1875,19 @@
   @@ -0,0 +1,1 @@
   +bar
 
+  $ hg diff -X '.hgsub*' --nodates s
+  diff -r 000000000000 s/a
+  --- /dev/null
+  +++ b/s/a
+  @@ -0,0 +1,1 @@
+  +a
+  $ hg diff -X '.hgsub*' --nodates s/a
+  diff -r 000000000000 s/a
+  --- /dev/null
+  +++ b/s/a
+  @@ -0,0 +1,1 @@
+  +a
+
   $ cd ..
 
 test for ssh exploit 2017-07-25