comparison 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
comparison
equal deleted inserted replaced
6791:bbd89c9e6012 6801:71e339714586
80 80
81 echo % patch file contents 81 echo % patch file contents
82 cat .hg/patches/mqbase | \ 82 cat .hg/patches/mqbase | \
83 sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \ 83 sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
84 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/" 84 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
85 cd ..
86
87
88
89 echo "[diff]" >> $HGRCPATH
90 echo "git=True" >> $HGRCPATH
91
92 # Test qrefresh --git losing copy metadata
93 echo % create test repo
94 hg init repo
95 cd repo
96 echo a > a
97 hg ci -Am adda
98 hg copy a ab
99 echo b >> ab
100 hg copy a ac
101 echo c >> ac
102 echo % capture changes
103 hg qnew -f p1
104 hg qdiff
105 echo % refresh and check changes again
106 hg qref
107 hg qdiff
108 cd ..
109