Mercurial > hg
comparison tests/test-mq-qrefresh-replace-log-message.t @ 12468:d8bf747d2e29
tests: unify test-mq-qrefresh-replace-log-message
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 26 Sep 2010 13:43:21 -0500 |
parents | tests/test-mq-qrefresh-replace-log-message@448eb46d4d84 |
children | 113d0a3d050b |
comparison
equal
deleted
inserted
replaced
12467:05e1171cf4ca | 12468:d8bf747d2e29 |
---|---|
1 Environement setup for MQ | |
2 | |
3 $ echo "[extensions]" >> $HGRCPATH | |
4 $ echo "mq=" >> $HGRCPATH | |
5 $ hg init | |
6 $ hg qinit | |
7 | |
8 Should fail if no patches applied | |
9 | |
10 $ hg qrefresh | |
11 no patches applied | |
12 [1] | |
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 | |
20 | |
21 Should display 'First commit message' | |
22 | |
23 $ hg log -l1 --template "{desc}\n" | |
24 First commit message | |
25 | |
26 Testing changing message with -m | |
27 | |
28 $ echo bbbb > file | |
29 $ hg qrefresh -m "Second commit message" | |
30 | |
31 Should display 'Second commit message' | |
32 | |
33 $ hg log -l1 --template "{desc}\n" | |
34 Second commit message | |
35 | |
36 Testing changing message with -l | |
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' | |
44 | |
45 $ hg log -l1 --template "{desc}\n" | |
46 Third commit message | |
47 This is the 3rd log message | |
48 | |
49 Testing changing message with -l- | |
50 | |
51 $ hg qnew -m "First commit message" second-patch | |
52 $ echo aaaa > file2 | |
53 $ hg add file2 | |
54 $ echo bbbb > file2 | |
55 $ (echo "Fifth commit message"; echo " This is the 5th log message") | hg qrefresh -l- | |
56 | |
57 Should display 'Fifth commit message\\\n This is the 5th log message' | |
58 | |
59 $ hg log -l1 --template "{desc}\n" | |
60 Fifth commit message | |
61 This is the 5th log message |