Mercurial > hg
comparison tests/test-notify.t @ 39707:5abc47d4ca6b
tests: quote PYTHON usage
Python3 defaults to installing under "Program Files".
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Tue, 18 Sep 2018 23:47:21 -0400 |
parents | d1134ca5b1a3 |
children | 7b35209ba1a7 |
comparison
equal
deleted
inserted
replaced
39706:030d558c6456 | 39707:5abc47d4ca6b |
---|---|
188 | 188 |
189 the python call below wraps continuation lines, which appear on Mac OS X 10.5 because | 189 the python call below wraps continuation lines, which appear on Mac OS X 10.5 because |
190 of the very long subject line | 190 of the very long subject line |
191 pull (minimal config) | 191 pull (minimal config) |
192 | 192 |
193 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 193 $ hg --traceback --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
194 pulling from ../a | 194 pulling from ../a |
195 searching for changes | 195 searching for changes |
196 adding changesets | 196 adding changesets |
197 adding manifests | 197 adding manifests |
198 adding file changes | 198 adding file changes |
247 | 247 |
248 pull | 248 pull |
249 | 249 |
250 $ hg --cwd b rollback | 250 $ hg --cwd b rollback |
251 repository tip rolled back to revision 0 (undo pull) | 251 repository tip rolled back to revision 0 (undo pull) |
252 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 252 $ hg --traceback --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
253 pulling from ../a | 253 pulling from ../a |
254 searching for changes | 254 searching for changes |
255 adding changesets | 255 adding changesets |
256 adding manifests | 256 adding manifests |
257 adding file changes | 257 adding file changes |
295 | 295 |
296 pull | 296 pull |
297 | 297 |
298 $ hg --cwd b rollback | 298 $ hg --cwd b rollback |
299 repository tip rolled back to revision 0 (undo pull) | 299 repository tip rolled back to revision 0 (undo pull) |
300 $ hg --traceback --config notify.maxdiffstat=1 --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 300 $ hg --traceback --config notify.maxdiffstat=1 --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
301 pulling from ../a | 301 pulling from ../a |
302 searching for changes | 302 searching for changes |
303 adding changesets | 303 adding changesets |
304 adding manifests | 304 adding manifests |
305 adding file changes | 305 adding file changes |
346 $ hg merge | 346 $ hg merge |
347 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 347 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
348 (branch merge, don't forget to commit) | 348 (branch merge, don't forget to commit) |
349 $ hg ci -m merge -d '3 0' | 349 $ hg ci -m merge -d '3 0' |
350 $ cd .. | 350 $ cd .. |
351 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 351 $ hg --traceback --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
352 pulling from ../a | 352 pulling from ../a |
353 searching for changes | 353 searching for changes |
354 adding changesets | 354 adding changesets |
355 adding manifests | 355 adding manifests |
356 adding file changes | 356 adding file changes |
410 > [notify] | 410 > [notify] |
411 > maxsubject = 4 | 411 > maxsubject = 4 |
412 > EOF | 412 > EOF |
413 $ echo a >> a/a | 413 $ echo a >> a/a |
414 $ hg --cwd a --encoding utf-8 commit -A -d '0 0' \ | 414 $ hg --cwd a --encoding utf-8 commit -A -d '0 0' \ |
415 > -m `$PYTHON -c 'print "\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4"'` | 415 > -m `"$PYTHON" -c 'print "\xc3\xa0\xc3\xa1\xc3\xa2\xc3\xa3\xc3\xa4"'` |
416 $ hg --traceback --cwd b --encoding utf-8 pull ../a | \ | 416 $ hg --traceback --cwd b --encoding utf-8 pull ../a | \ |
417 > $PYTHON $TESTTMP/filter.py | 417 > "$PYTHON" $TESTTMP/filter.py |
418 pulling from ../a | 418 pulling from ../a |
419 searching for changes | 419 searching for changes |
420 adding changesets | 420 adding changesets |
421 adding manifests | 421 adding manifests |
422 adding file changes | 422 adding file changes |
453 > [notify] | 453 > [notify] |
454 > maxsubject = 67 | 454 > maxsubject = 67 |
455 > test = False | 455 > test = False |
456 > mbox = mbox | 456 > mbox = mbox |
457 > EOF | 457 > EOF |
458 $ $PYTHON -c 'open("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")' | 458 $ "$PYTHON" -c 'open("a/a", "ab").write("no" * 500 + "\xd1\x84" + "\n")' |
459 $ hg --cwd a commit -A -m "long line" | 459 $ hg --cwd a commit -A -m "long line" |
460 $ hg --traceback --cwd b pull ../a | 460 $ hg --traceback --cwd b pull ../a |
461 pulling from ../a | 461 pulling from ../a |
462 searching for changes | 462 searching for changes |
463 adding changesets | 463 adding changesets |
465 adding file changes | 465 adding file changes |
466 added 1 changesets with 1 changes to 1 files | 466 added 1 changesets with 1 changes to 1 files |
467 new changesets a846b5f6ebb7 | 467 new changesets a846b5f6ebb7 |
468 notify: sending 2 subscribers 1 changes | 468 notify: sending 2 subscribers 1 changes |
469 (run 'hg update' to get a working copy) | 469 (run 'hg update' to get a working copy) |
470 $ $PYTHON $TESTTMP/filter.py < b/mbox | 470 $ "$PYTHON" $TESTTMP/filter.py < b/mbox |
471 From test@test.com ... ... .. ..:..:.. .... (re) | 471 From test@test.com ... ... .. ..:..:.. .... (re) |
472 MIME-Version: 1.0 | 472 MIME-Version: 1.0 |
473 Content-Type: text/plain; charset="*" (glob) | 473 Content-Type: text/plain; charset="*" (glob) |
474 Content-Transfer-Encoding: quoted-printable | 474 Content-Transfer-Encoding: quoted-printable |
475 X-Test: foo | 475 X-Test: foo |
525 $ hg --cwd a branch test | 525 $ hg --cwd a branch test |
526 marked working directory as branch test | 526 marked working directory as branch test |
527 (branches are permanent and global, did you want a bookmark?) | 527 (branches are permanent and global, did you want a bookmark?) |
528 $ echo a >> a/a | 528 $ echo a >> a/a |
529 $ hg --cwd a ci -m test -d '1 0' | 529 $ hg --cwd a ci -m test -d '1 0' |
530 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 530 $ hg --traceback --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
531 pulling from ../a | 531 pulling from ../a |
532 searching for changes | 532 searching for changes |
533 adding changesets | 533 adding changesets |
534 adding manifests | 534 adding manifests |
535 adding file changes | 535 adding file changes |
555 | 555 |
556 $ hg --cwd a update default | 556 $ hg --cwd a update default |
557 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 557 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
558 $ echo a >> a/a | 558 $ echo a >> a/a |
559 $ hg --cwd a ci -m test -d '1 0' | 559 $ hg --cwd a ci -m test -d '1 0' |
560 $ hg --traceback --cwd b pull ../a | $PYTHON $TESTTMP/filter.py | 560 $ hg --traceback --cwd b pull ../a | "$PYTHON" $TESTTMP/filter.py |
561 pulling from ../a | 561 pulling from ../a |
562 searching for changes | 562 searching for changes |
563 adding changesets | 563 adding changesets |
564 adding manifests | 564 adding manifests |
565 adding file changes | 565 adding file changes |
584 | 584 |
585 $ grep -v '^template =' $HGRCPATH > "$HGRCPATH.new" | 585 $ grep -v '^template =' $HGRCPATH > "$HGRCPATH.new" |
586 $ mv "$HGRCPATH.new" $HGRCPATH | 586 $ mv "$HGRCPATH.new" $HGRCPATH |
587 $ echo a >> a/a | 587 $ echo a >> a/a |
588 $ hg --cwd a commit -m 'default template' | 588 $ hg --cwd a commit -m 'default template' |
589 $ hg --cwd b pull ../a -q | $PYTHON $TESTTMP/filter.py | 589 $ hg --cwd b pull ../a -q | "$PYTHON" $TESTTMP/filter.py |
590 MIME-Version: 1.0 | 590 MIME-Version: 1.0 |
591 Content-Type: text/plain; charset="us-ascii" | 591 Content-Type: text/plain; charset="us-ascii" |
592 Content-Transfer-Encoding: 7bit | 592 Content-Transfer-Encoding: 7bit |
593 Date: * (glob) | 593 Date: * (glob) |
594 Subject: changeset in b: default template | 594 Subject: changeset in b: default template |
613 > [notify] | 613 > [notify] |
614 > style = $TESTTMP/notifystyle.map | 614 > style = $TESTTMP/notifystyle.map |
615 > EOF | 615 > EOF |
616 $ echo a >> a/a | 616 $ echo a >> a/a |
617 $ hg --cwd a commit -m 'with style' | 617 $ hg --cwd a commit -m 'with style' |
618 $ hg --cwd b pull ../a -q | $PYTHON $TESTTMP/filter.py | 618 $ hg --cwd b pull ../a -q | "$PYTHON" $TESTTMP/filter.py |
619 MIME-Version: 1.0 | 619 MIME-Version: 1.0 |
620 Content-Type: text/plain; charset="us-ascii" | 620 Content-Type: text/plain; charset="us-ascii" |
621 Content-Transfer-Encoding: 7bit | 621 Content-Transfer-Encoding: 7bit |
622 Date: * (glob) | 622 Date: * (glob) |
623 Subject: with style | 623 Subject: with style |
636 > {""} | 636 > {""} |
637 > {desc} | 637 > {desc} |
638 > EOF | 638 > EOF |
639 $ echo a >> a/a | 639 $ echo a >> a/a |
640 $ hg --cwd a commit -m 'with template' | 640 $ hg --cwd a commit -m 'with template' |
641 $ hg --cwd b pull ../a -q | $PYTHON $TESTTMP/filter.py | 641 $ hg --cwd b pull ../a -q | "$PYTHON" $TESTTMP/filter.py |
642 MIME-Version: 1.0 | 642 MIME-Version: 1.0 |
643 Content-Type: text/plain; charset="us-ascii" | 643 Content-Type: text/plain; charset="us-ascii" |
644 Content-Transfer-Encoding: 7bit | 644 Content-Transfer-Encoding: 7bit |
645 Date: * (glob) | 645 Date: * (glob) |
646 Subject: 14721b538ae3: with template | 646 Subject: 14721b538ae3: with template |