tests/test-diff-reverse.t
branchstable
changeset 23080 c586cb50872b
parent 12139 5a69ea8d65b3
child 49585 55c6ebd11cb9
--- a/tests/test-diff-reverse.t	Thu Oct 23 13:17:37 2014 -0700
+++ b/tests/test-diff-reverse.t	Fri Oct 24 15:52:20 2014 -0500
@@ -42,3 +42,24 @@
   -g
   -h
 
+should show removed file 'a' as being added
+  $ hg revert a
+  $ hg rm a
+  $ hg diff --reverse --nodates a
+  diff -r 2855cdcfcbb7 a
+  --- /dev/null
+  +++ b/a
+  @@ -0,0 +1,3 @@
+  +d
+  +e
+  +f
+
+should show added file 'b' as being removed
+  $ echo b >> b
+  $ hg add b
+  $ hg diff --reverse --nodates b
+  diff -r 2855cdcfcbb7 b
+  --- a/b
+  +++ /dev/null
+  @@ -1,1 +0,0 @@
+  -b