Mercurial > hg
diff tests/test-mq @ 5294:e14118f92730
mq: fix regression in 6fd953d5faea
It caused qrefresh; qrefresh -X addedfile to leave the file as normal in dirstate.
It should be marked added on the second pass.
author | Brendan Cully <brendan@kublai.com> |
---|---|
date | Mon, 10 Sep 2007 15:00:05 -0700 |
parents | 06154aff2b1a |
children | 0b3f910dfd17 |
line wrap: on
line diff
--- a/tests/test-mq Fri Sep 07 17:54:38 2007 +0200 +++ b/tests/test-mq Mon Sep 10 15:00:05 2007 -0700 @@ -338,6 +338,19 @@ cat .hg/patches/bar hg log -vC --template '{rev} {file_copies%filecopy}\n' -r . +echo % refresh omitting an added file +hg qnew baz +echo newfile > newfile +hg add newfile +hg qrefresh +hg st -A newfile +hg qrefresh -X newfile +hg st -A newfile +hg revert newfile +rm newfile +hg qpop +hg qdel baz + echo % create a git patch echo a > alexander hg add alexander