From patchwork Thu Jul 24 15:03:17 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: [STABLE] test-status: add test for removed-and-untracked state (BC by 65cdc6bab91e) From: Yuya Nishihara X-Patchwork-Id: 5195 Message-Id: <194ceafd97c458032262.1406214197@mimosa> To: mercurial-devel@selenic.com Date: Fri, 25 Jul 2014 00:03:17 +0900 # HG changeset patch # User Yuya Nishihara # Date 1406212765 -32400 # Thu Jul 24 23:39:25 2014 +0900 # Branch stable # Node ID 194ceafd97c4580322625a551c93a54646be735c # Parent 54ff2789d75e0662a536b3da61ca25c07436966b test-status: add test for removed-and-untracked state (BC by 65cdc6bab91e) In Mercurial 3.0, "hg status" can list the same file twice if it was removed but still exists in working directory, i.e. removed by "hg forget": $ hg status --rev 0 removed R removed ? removed But since 65cdc6bab91e, untracked state, "?", is no longer displayed in this example. I think the new behavior is correct since a file should have single state, but if it is a bug, this patch should be dropped. diff --git a/tests/test-status.t b/tests/test-status.t --- a/tests/test-status.t +++ b/tests/test-status.t @@ -280,6 +280,13 @@ hg status -A --change 1 and revset: R removed C deleted +status of removed but existing in working directory. "? removed" should +not be included: + + $ touch removed + $ hg status --rev 0 removed + R removed + $ cd .. hg status of binary file starting with '\1\n', a separator for metadata: