[PATCH 1 of 4 STABLE] test-diff-reverse: demonstrate broken diff of added or removed file

Martin von Zweigbergk martinvonz at google.com
Thu Oct 23 16:27:21 CDT 2014


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1414097729 25200
#      Thu Oct 23 13:55:29 2014 -0700
# Branch stable
# Node ID 47c820255552a450adf81209fa61cd8ccd8792b0
# Parent  d583f1cfca9670946d7e315df4d0a0efccb7a612
test-diff-reverse: demonstrate broken diff of added or removed file

diff --git a/tests/test-diff-reverse.t b/tests/test-diff-reverse.t
--- a/tests/test-diff-reverse.t
+++ b/tests/test-diff-reverse.t
@@ -42,3 +42,14 @@
   -g
   -h
 
+BROKEN: should show removed file 'a' as being added
+  $ hg revert a
+  $ hg rm a
+  $ hg diff --reverse --nodates a
+
+BROKEN: should show added file 'b' as being removed
+  $ echo b >> b
+  $ hg add b
+  $ hg diff --reverse --nodates b
+  abort: b at 2855cdcfcbb7: not found in manifest!
+  [255]


More information about the Mercurial-devel mailing list