Mercurial > hg > mercurial-crew-with-dirclash
comparison tests/test-mq-qrefresh-replace-log-message @ 3044:fcadf7a32425
Merge with mpm
author | Josef "Jeff" Sipek <jeffpc@josefsipek.net> |
---|---|
date | Sun, 03 Sep 2006 06:06:02 -0400 |
parents | 0b9ac7dfcf56 |
children | 61fcd9fac434 |
comparison
equal
deleted
inserted
replaced
3043:2a4d4aecb2b4 | 3044:fcadf7a32425 |
---|---|
1 #!/bin/sh | |
2 | |
3 # Environement setup for MQ | |
4 HGRCPATH=$HGTMP/.hgrc; export HGRCPATH | |
5 echo "[extensions]" >> $HGTMP/.hgrc | |
6 echo "mq=" >> $HGTMP/.hgrc | |
7 | |
8 #Repo init | |
9 hg init | |
10 hg qinit | |
11 | |
12 hg qnew -m "First commit message" first-patch | |
13 echo aaaa > file | |
14 hg add file | |
15 hg qrefresh | |
16 echo ======================= | |
17 echo "Should display 'First commit message'" | |
18 hg log -l1 -v | sed -n '/description/,$p' | |
19 echo | |
20 | |
21 # Testing changing message with -m | |
22 echo bbbb > file | |
23 hg qrefresh -m "Second commit message" | |
24 echo ======================= | |
25 echo "Should display 'Second commit message'" | |
26 hg log -l1 -v | sed -n '/description/,$p' | |
27 echo | |
28 | |
29 | |
30 # Testing changing message with -l | |
31 echo "Third commit message" > logfile | |
32 echo " This is the 3rd log message" >> logfile | |
33 echo bbbb > file | |
34 hg qrefresh -l logfile | |
35 echo ======================= | |
36 printf "Should display 'Third commit message\\\n This is the 3rd log message'\n" | |
37 hg log -l1 -v | sed -n '/description/,$p' | |
38 echo | |
39 | |
40 # Testing changing message with -l- | |
41 hg qnew -m "First commit message" second-patch | |
42 echo aaaa > file2 | |
43 hg add file2 | |
44 echo bbbb > file2 | |
45 (echo "Fifth commit message" | |
46 echo " This is the 5th log message" >> logfile) |\ | |
47 hg qrefresh -l- | |
48 echo ======================= | |
49 printf "Should display 'Fifth commit message\\\n This is the 5th log message'\n" | |
50 hg log -l1 -v | sed -n '/description/,$p' | |
51 echo |