Mercurial > hg
changeset 21942:64fe488b5179 stable
test-status: add test for removed-and-untracked state (BC)
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.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 24 Jul 2014 23:39:25 +0900 |
parents | dab31290c7eb |
children | 8534e670f4ee |
files | tests/test-status.t |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-status.t Wed Jul 02 16:13:48 2014 +0200 +++ b/tests/test-status.t Thu Jul 24 23:39:25 2014 +0900 @@ -280,6 +280,13 @@ 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: