Show More
@@ -1,55 +1,61 b'' | |||||
1 | #!/bin/sh |
|
1 | Environement setup for MQ | |
2 |
|
2 | |||
3 | # Environement setup for MQ |
|
3 | $ echo "[extensions]" >> $HGRCPATH | |
4 |
echo " |
|
4 | $ echo "mq=" >> $HGRCPATH | |
5 | echo "mq=" >> $HGRCPATH |
|
5 | $ hg init | |
|
6 | $ hg qinit | |||
6 |
|
7 | |||
7 | #Repo init |
|
8 | Should fail if no patches applied | |
8 | hg init |
|
|||
9 | hg qinit |
|
|||
10 |
|
9 | |||
11 | echo ======================= |
|
10 | $ hg qrefresh | |
12 |
|
|
11 | no patches applied | |
13 | hg qrefresh |
|
12 | [1] | |
14 | hg qrefresh -e |
|
13 | $ hg qrefresh -e | |
|
14 | no patches applied | |||
|
15 | [1] | |||
|
16 | $ hg qnew -m "First commit message" first-patch | |||
|
17 | $ echo aaaa > file | |||
|
18 | $ hg add file | |||
|
19 | $ hg qrefresh | |||
15 |
|
20 | |||
16 | hg qnew -m "First commit message" first-patch |
|
21 | Should display 'First commit message' | |
17 | echo aaaa > file |
|
22 | ||
18 | hg add file |
|
23 | $ hg log -l1 --template "{desc}\n" | |
19 | hg qrefresh |
|
24 | First commit message | |
20 | echo ======================= |
|
25 | ||
21 | echo "Should display 'First commit message'" |
|
26 | Testing changing message with -m | |
22 | hg log -l1 -v | sed -n '/description/,$p' |
|
27 | ||
23 | echo |
|
28 | $ echo bbbb > file | |
|
29 | $ hg qrefresh -m "Second commit message" | |||
24 |
|
30 | |||
25 | # Testing changing message with -m |
|
31 | Should display 'Second commit message' | |
26 | echo bbbb > file |
|
32 | ||
27 | hg qrefresh -m "Second commit message" |
|
33 | $ hg log -l1 --template "{desc}\n" | |
28 | echo ======================= |
|
34 | Second commit message | |
29 | echo "Should display 'Second commit message'" |
|
35 | ||
30 | hg log -l1 -v | sed -n '/description/,$p' |
|
36 | Testing changing message with -l | |
31 | echo |
|
|||
32 |
|
37 | |||
|
38 | $ echo "Third commit message" > logfile | |||
|
39 | $ echo " This is the 3rd log message" >> logfile | |||
|
40 | $ echo bbbb > file | |||
|
41 | $ hg qrefresh -l logfile | |||
|
42 | ||||
|
43 | Should display 'Third commit message\\\n This is the 3rd log message' | |||
33 |
|
44 | |||
34 | # Testing changing message with -l |
|
45 | $ hg log -l1 --template "{desc}\n" | |
35 |
|
|
46 | Third commit message | |
36 |
|
|
47 | This is the 3rd log message | |
37 | echo bbbb > file |
|
48 | ||
38 | hg qrefresh -l logfile |
|
49 | Testing changing message with -l- | |
39 | echo ======================= |
|
|||
40 | printf "Should display 'Third commit message\\\n This is the 3rd log message'\n" |
|
|||
41 | hg log -l1 -v | sed -n '/description/,$p' |
|
|||
42 | echo |
|
|||
43 |
|
50 | |||
44 | # Testing changing message with -l- |
|
51 | $ hg qnew -m "First commit message" second-patch | |
45 | hg qnew -m "First commit message" second-patch |
|
52 | $ echo aaaa > file2 | |
46 | echo aaaa > file2 |
|
53 | $ hg add file2 | |
47 | hg add file2 |
|
54 | $ echo bbbb > file2 | |
48 | echo bbbb > file2 |
|
55 | $ (echo "Fifth commit message"; echo " This is the 5th log message") | hg qrefresh -l- | |
49 | (echo "Fifth commit message" |
|
56 | ||
50 | echo " This is the 5th log message" >> logfile) |\ |
|
57 | Should display 'Fifth commit message\\\n This is the 5th log message' | |
51 | hg qrefresh -l- |
|
58 | ||
52 | echo ======================= |
|
59 | $ hg log -l1 --template "{desc}\n" | |
53 | printf "Should display 'Fifth commit message\\\n This is the 5th log message'\n" |
|
60 | Fifth commit message | |
54 | hg log -l1 -v | sed -n '/description/,$p' |
|
61 | This is the 5th log message | |
55 | echo |
|
1 | NO CONTENT: file was removed |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now