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

login
register
mail settings
Submitter Martin von Zweigbergk
Date Oct. 23, 2014, 9:39 p.m.
Message ID <47c820255552a450adf8.1414100385@handduk2.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/6454/
State Accepted
Headers show

Comments

Martin von Zweigbergk - Oct. 23, 2014, 9:39 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@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

Patch

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@2855cdcfcbb7: not found in manifest!
+  [255]