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