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