##// END OF EJS Templates
tests: unify test-config-case
tests: unify test-config-case

File last commit:

r11049:a84f1422 default
r12082:5e2216a3 default
Show More
test-mq-qdiff
72 lines | 1.2 KiB | text/plain | TextLexer
Giorgos Keramidas
tests: new test for mq qdiff command...
r2916 #!/bin/sh
Thomas Arendsen Hein
Make tests append settings to $HGRCPATH instead of $HGTMP/.hgrc...
r2990 echo "[extensions]" >> $HGRCPATH
echo "mq=" >> $HGRCPATH
Patrick Mezard
mq: qdiff with the same diff options than qrefresh (issue1350)...
r10191 echo "[mq]" >> $HGRCPATH
echo "git=keep" >> $HGRCPATH
Giorgos Keramidas
tests: new test for mq qdiff command...
r2916
echo % init
hg init a
cd a
echo % commit
echo 'base' > base
hg ci -Ambase -d '1 0'
echo % qnew mqbase
hg qnew -mmqbase mqbase
echo % qrefresh
echo 'patched' > base
hg qrefresh
echo % qdiff
hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
echo % qdiff dirname
hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
-e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
Jason Orendorff
mq: qdiff: support all diffopts
r6668
echo % qdiff filename
hg qdiff --nodates base
echo % revert
hg revert -a
echo % qpop
hg qpop
echo % qdelete mqbase
hg qdelete mqbase
echo % commit 2
printf '1\n2\n3\n4\nhello world\ngoodbye world\n7\n8\n9\n' > lines
hg ci -Amlines -d '2 0'
echo % qnew 2
hg qnew -mmqbase2 mqbase2
printf '\n\n1\n2\n3\n4\nhello world\n goodbye world\n7\n8\n9\n' > lines
echo % qdiff -U 1
hg qdiff --nodates -U 1
echo % qdiff -b
hg qdiff --nodates -b
echo % qdiff -U 1 -B
hg qdiff --nodates -U 1 -B
Yannick Gingras
diff: add --inverse option...
r9725 echo % qdiff -w
Jason Orendorff
mq: qdiff: support all diffopts
r6668 hg qdiff --nodates -w
Yannick Gingras
diff: add --inverse option...
r9725
Martin Geisler
diff: change --inverse to --reverse...
r9857 echo % qdiff --reverse
hg qdiff --nodates --reverse
Patrick Mezard
mq: qdiff with the same diff options than qrefresh (issue1350)...
r10191
echo % qdiff preserve existing git flag
hg qrefresh --git
echo a >> lines
hg qdiff
Yuya Nishihara
mq: fix opts['unified'] = '0' to take effect when qdiff --stat...
r11049 echo % qdiff --stat
hg qdiff --stat