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