Mercurial > hg
comparison tests/test-mq-qrefresh-replace-log-message @ 2886:bee4b7abcb01
Merge with crew
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 14 Aug 2006 14:42:15 -0500 |
parents | 0b9ac7dfcf56 |
children | 61fcd9fac434 |
comparison
equal
deleted
inserted
replaced
2842:06c05c675a35 | 2886:bee4b7abcb01 |
---|---|
31 echo "Third commit message" > logfile | 31 echo "Third commit message" > logfile |
32 echo " This is the 3rd log message" >> logfile | 32 echo " This is the 3rd log message" >> logfile |
33 echo bbbb > file | 33 echo bbbb > file |
34 hg qrefresh -l logfile | 34 hg qrefresh -l logfile |
35 echo ======================= | 35 echo ======================= |
36 echo "Should display 'Third commit message\n This is the 3rd log message'" | 36 printf "Should display 'Third commit message\\\n This is the 3rd log message'\n" |
37 hg log -l1 -v | sed -n '/description/,$p' | 37 hg log -l1 -v | sed -n '/description/,$p' |
38 echo | 38 echo |
39 | 39 |
40 # Testing changing message with -l- | 40 # Testing changing message with -l- |
41 hg qnew -m "First commit message" second-patch | 41 hg qnew -m "First commit message" second-patch |
44 echo bbbb > file2 | 44 echo bbbb > file2 |
45 (echo "Fifth commit message" | 45 (echo "Fifth commit message" |
46 echo " This is the 5th log message" >> logfile) |\ | 46 echo " This is the 5th log message" >> logfile) |\ |
47 hg qrefresh -l- | 47 hg qrefresh -l- |
48 echo ======================= | 48 echo ======================= |
49 echo "Should display 'Fifth commit message\n This is the 5th log message'" | 49 printf "Should display 'Fifth commit message\\\n This is the 5th log message'\n" |
50 hg log -l1 -v | sed -n '/description/,$p' | 50 hg log -l1 -v | sed -n '/description/,$p' |
51 echo | 51 echo |