Show More
@@ -309,8 +309,10 b' record' | |||||
309 |
|
309 | |||
310 | record chunk |
|
310 | record chunk | |
311 |
|
311 | |||
312 | $ python -c \ |
|
312 | >>> lines = open('a').readlines() | |
313 | > 'l=open("a").readlines();l.insert(1,"foo\n");l.append("bar\n");open("a","w").writelines(l);' |
|
313 | >>> lines.insert(1, 'foo\n') | |
|
314 | >>> lines.append('bar\n') | |||
|
315 | >>> open('a', 'w').writelines(lines) | |||
314 | $ hg record -d '1 10' -m rectest a<<EOF |
|
316 | $ hg record -d '1 10' -m rectest a<<EOF | |
315 | > y |
|
317 | > y | |
316 | > y |
|
318 | > y | |
@@ -809,8 +811,9 b' Clone to test incoming' | |||||
809 |
|
811 | |||
810 | Imported patch should not be rejected |
|
812 | Imported patch should not be rejected | |
811 |
|
813 | |||
812 | $ python -c \ |
|
814 | >>> import re | |
813 |
> ' |
|
815 | >>> text = re.sub(r'(Id.*)', r'\1 rejecttest', open('a').read()) | |
|
816 | >>> open('a', 'wb').write(text) | |||
814 | $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' |
|
817 | $ hg --debug commit -m'rejects?' -d '3 0' -u 'User Name <user@example.com>' | |
815 | a |
|
818 | a | |
816 | overwriting a expanding keywords |
|
819 | overwriting a expanding keywords |
General Comments 0
You need to be logged in to leave comments.
Login now