tests/test-extdiff.t
changeset 43790 765a9c299c44
parent 41809 e0a3ee3fdb33
child 43822 fb03cd716f50
--- a/tests/test-extdiff.t	Tue Dec 03 17:10:10 2019 -0800
+++ b/tests/test-extdiff.t	Tue Dec 03 17:17:57 2019 -0800
@@ -515,3 +515,27 @@
   $ LC_MESSAGES=ja_JP.UTF-8 hg --config hgext.extdiff= --config extdiff.cmd.td=$U help td \
   > | grep "^      '"
         '\xa5\xa5'
+
+  $ cd $TESTTMP
+
+Test that diffing a single file works, even if that file is new
+
+  $ hg init testsinglefile
+  $ cd testsinglefile
+  $ echo a > a
+  $ hg add a
+  $ hg falabala
+  diffing * */a (glob)
+  [1]
+  $ hg ci -qm a
+  $ hg falabala -c .
+  diffing * */a (glob)
+  [1]
+  $ echo a >> a
+  $ hg falabala
+  diffing */a */a (glob)
+  [1]
+  $ hg ci -qm 2a
+  $ hg falabala -c .
+  diffing */a */a (glob)
+  [1]