Mercurial > hg
diff tests/test-mq-qrefresh @ 6801:71e339714586
mq: fix qrefresh losing copy information (issue 1134)
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Mon, 07 Jul 2008 09:16:09 +0200 |
parents | f01efb4bc258 |
children | f7fc5f5ecd62 |
line wrap: on
line diff
--- a/tests/test-mq-qrefresh Wed Jun 25 14:13:20 2008 -0700 +++ b/tests/test-mq-qrefresh Mon Jul 07 09:16:09 2008 +0200 @@ -82,3 +82,28 @@ cat .hg/patches/mqbase | \ sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" +cd .. + + + +echo "[diff]" >> $HGRCPATH +echo "git=True" >> $HGRCPATH + +# Test qrefresh --git losing copy metadata +echo % create test repo +hg init repo +cd repo +echo a > a +hg ci -Am adda +hg copy a ab +echo b >> ab +hg copy a ac +echo c >> ac +echo % capture changes +hg qnew -f p1 +hg qdiff +echo % refresh and check changes again +hg qref +hg qdiff +cd .. +