tests/test-diffstat.t
changeset 41401 4a33a6bf2b52
parent 41375 f1b0d9988825
child 41670 db69a763bc89
--- a/tests/test-diffstat.t	Mon Jan 21 23:08:31 2019 -0800
+++ b/tests/test-diffstat.t	Sat Jan 26 13:14:21 2019 +0530
@@ -255,3 +255,19 @@
   $ hg diff --stat --git
    a => b |  0 
    1 files changed, 0 insertions(+), 0 deletions(-)
+-- filename may contain whitespaces
+  $ echo > c
+  $ hg ci -Am 'add c'
+  adding c
+  $ hg mv c 'new c'
+  $ hg diff --git
+  diff --git a/c b/new c
+  rename from c
+  rename to new c
+  $ hg diff --stat
+   c     |  1 -
+   new c |  1 +
+   2 files changed, 1 insertions(+), 1 deletions(-)
+  $ hg diff --stat --git
+   c => new c |  0 
+   1 files changed, 0 insertions(+), 0 deletions(-)