##// END OF EJS Templates
tests: new test for mq qdiff command...
Giorgos Keramidas -
r2916:8ca608c1 default
parent child Browse files
Show More
@@ -0,0 +1,28 b''
1 #!/bin/sh
2
3 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH
4 echo "[extensions]" >> $HGTMP/.hgrc
5 echo "mq=" >> $HGTMP/.hgrc
6
7 echo % init
8 hg init a
9 cd a
10
11 echo % commit
12 echo 'base' > base
13 hg ci -Ambase -d '1 0'
14
15 echo % qnew mqbase
16 hg qnew -mmqbase mqbase
17
18 echo % qrefresh
19 echo 'patched' > base
20 hg qrefresh
21
22 echo % qdiff
23 hg qdiff | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
24 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
25
26 echo % qdiff dirname
27 hg qdiff . | sed -e "s/\(+++ [a-zA-Z0-9_/.-]*\).*/\1/" \
28 -e "s/\(--- [a-zA-Z0-9_/.-]*\).*/\1/"
@@ -0,0 +1,19 b''
1 % init
2 % commit
3 adding base
4 % qnew mqbase
5 % qrefresh
6 % qdiff
7 diff -r 67e992f2c4f3 base
8 --- a/base
9 +++ b/base
10 @@ -1,1 +1,1 @@ base
11 -base
12 +patched
13 % qdiff dirname
14 diff -r 67e992f2c4f3 base
15 --- a/base
16 +++ b/base
17 @@ -1,1 +1,1 @@ base
18 -base
19 +patched
General Comments 0
You need to be logged in to leave comments. Login now