tests/test-diffstat.t
changeset 41375 f1b0d9988825
parent 37367 87c4253bebdb
child 41401 4a33a6bf2b52
--- a/tests/test-diffstat.t	Fri Jan 25 09:50:23 2019 -0800
+++ b/tests/test-diffstat.t	Thu Jan 17 18:05:54 2019 +0530
@@ -236,3 +236,22 @@
   $ hg diff --root . --stat
    file |  2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)
+
+When a file is renamed, --git shouldn't loss the info about old file
+  $ hg init issue6025
+  $ cd issue6025
+  $ echo > a
+  $ hg ci -Am 'add a'
+  adding a
+  $ hg mv a b
+  $ hg diff --git
+  diff --git a/a b/b
+  rename from a
+  rename to b
+  $ hg diff --stat
+   a |  1 -
+   b |  1 +
+   2 files changed, 1 insertions(+), 1 deletions(-)
+  $ hg diff --stat --git
+   a => b |  0 
+   1 files changed, 0 insertions(+), 0 deletions(-)