Show More
@@ -10,7 +10,7 b' Prepare repo a:' | |||
|
10 | 10 | |
|
11 | 11 | Create a non-inlined filelog: |
|
12 | 12 | |
|
13 | $ python -c 'for x in range(10000): print x' >> data1 | |
|
13 | $ python -c 'file("data1", "wb").write("".join("%s\n" % x for x in range(10000)))' | |
|
14 | 14 | $ for j in 0 1 2 3 4 5 6 7 8 9; do |
|
15 | 15 | > cat data1 >> b |
|
16 | 16 | > hg commit -m test |
@@ -1,6 +1,6 b'' | |||
|
1 | 1 | $ hg init |
|
2 | 2 | |
|
3 |
$ python -c ' |
|
|
3 | $ python -c 'file("a", "wb").write("confuse str.splitlines\nembedded\rnewline\n")' | |
|
4 | 4 | $ hg ci -Ama -d '1 0' |
|
5 | 5 | adding a |
|
6 | 6 |
@@ -233,7 +233,7 b' override commit message' | |||
|
233 | 233 | > msg.set_payload('email commit message\n' + patch) |
|
234 | 234 | > msg['Subject'] = 'email patch' |
|
235 | 235 | > msg['From'] = 'email patcher' |
|
236 |
> sys. |
|
|
236 | > file(sys.argv[2], 'wb').write(msg.as_string()) | |
|
237 | 237 | > EOF |
|
238 | 238 | |
|
239 | 239 | |
@@ -246,7 +246,7 b' plain diff in email, subject, message bo' | |||
|
246 | 246 | added 1 changesets with 2 changes to 2 files |
|
247 | 247 | updating to branch default |
|
248 | 248 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
249 |
$ python mkmsg.py diffed-tip.patch |
|
|
249 | $ python mkmsg.py diffed-tip.patch msg.patch | |
|
250 | 250 | $ hg --cwd b import ../msg.patch |
|
251 | 251 | applying ../msg.patch |
|
252 | 252 | $ hg --cwd b tip | grep email |
@@ -308,7 +308,8 b' hg export in email, should use patch hea' | |||
|
308 | 308 | added 1 changesets with 2 changes to 2 files |
|
309 | 309 | updating to branch default |
|
310 | 310 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
311 |
$ python mkmsg.py exported-tip.patch |
|
|
311 | $ python mkmsg.py exported-tip.patch msg.patch | |
|
312 | $ cat msg.patch | hg --cwd b import - | |
|
312 | 313 | applying patch from stdin |
|
313 | 314 | $ hg --cwd b tip | grep second |
|
314 | 315 | summary: second change |
@@ -325,7 +326,7 b" The '---' tests the gitsendmail handling" | |||
|
325 | 326 | > msg.set_payload('email patch\n\nnext line\n---\n' + patch) |
|
326 | 327 | > msg['Subject'] = '[PATCH] email patch' |
|
327 | 328 | > msg['From'] = 'email patcher' |
|
328 |
> sys. |
|
|
329 | > file(sys.argv[2], 'wb').write(msg.as_string()) | |
|
329 | 330 | > EOF |
|
330 | 331 | |
|
331 | 332 | |
@@ -338,7 +339,8 b' plain diff in email, [PATCH] subject, me' | |||
|
338 | 339 | added 1 changesets with 2 changes to 2 files |
|
339 | 340 | updating to branch default |
|
340 | 341 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
341 |
$ python mkmsg2.py diffed-tip.patch |
|
|
342 | $ python mkmsg2.py diffed-tip.patch msg.patch | |
|
343 | $ cat msg.patch | hg --cwd b import - | |
|
342 | 344 | applying patch from stdin |
|
343 | 345 | $ hg --cwd b tip --template '{desc}\n' |
|
344 | 346 | email patch |
General Comments 0
You need to be logged in to leave comments.
Login now