comparison tests/test-branches.t @ 22704:386339ffe421

branches: merge white space to format string Diffs of test output should be harmless. A white space character is moved into "log.changeset" color region.
author Yuya Nishihara <yuya@tcha.org>
date Thu, 02 Oct 2014 23:13:56 +0900
parents bd6e95cb82b4
children d4869b280cd6
comparison
equal deleted inserted replaced
22703:bd6e95cb82b4 22704:386339ffe421
428 3 files updated, 0 files merged, 2 files removed, 0 files unresolved 428 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
429 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch' 429 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch'
430 $ hg up -C b 430 $ hg up -C b
431 2 files updated, 0 files merged, 3 files removed, 0 files unresolved 431 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
432 $ hg branches --color=always 432 $ hg branches --color=always
433 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc) 433 \x1b[0;32mb\x1b[0m\x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc)
434 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc) 434 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m\x1b[0;33m 7:10ff5895aa57\x1b[0m (esc)
435 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc) 435 \x1b[0;0ma\x1b[0m\x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
436 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc) 436 \x1b[0;0mdefault\x1b[0m\x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
437 437
438 default closed branch color: 438 default closed branch color:
439 439
440 $ hg branches --color=always --closed 440 $ hg branches --color=always --closed
441 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc) 441 \x1b[0;32mb\x1b[0m\x1b[0;33m 13:e23b5505d1ad\x1b[0m (esc)
442 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc) 442 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m\x1b[0;33m 7:10ff5895aa57\x1b[0m (esc)
443 \x1b[0;30;1mc\x1b[0m \x1b[0;33m 14:f894c25619d3\x1b[0m (closed) (esc) 443 \x1b[0;30;1mc\x1b[0m\x1b[0;33m 14:f894c25619d3\x1b[0m (closed) (esc)
444 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc) 444 \x1b[0;0ma\x1b[0m\x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
445 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc) 445 \x1b[0;0mdefault\x1b[0m\x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
446 446
447 $ echo "[extensions]" >> $HGRCPATH 447 $ echo "[extensions]" >> $HGRCPATH
448 $ echo "color =" >> $HGRCPATH 448 $ echo "color =" >> $HGRCPATH
449 $ echo "[color]" >> $HGRCPATH 449 $ echo "[color]" >> $HGRCPATH
450 $ echo "branches.active = green" >> $HGRCPATH 450 $ echo "branches.active = green" >> $HGRCPATH
454 $ echo "log.changeset = cyan" >> $HGRCPATH 454 $ echo "log.changeset = cyan" >> $HGRCPATH
455 455
456 custom branch colors: 456 custom branch colors:
457 457
458 $ hg branches --color=always 458 $ hg branches --color=always
459 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc) 459 \x1b[0;31mb\x1b[0m\x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc)
460 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc) 460 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m\x1b[0;36m 7:10ff5895aa57\x1b[0m (esc)
461 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc) 461 \x1b[0;35ma\x1b[0m\x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
462 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc) 462 \x1b[0;35mdefault\x1b[0m\x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
463 463
464 custom closed branch color: 464 custom closed branch color:
465 465
466 $ hg branches --color=always --closed 466 $ hg branches --color=always --closed
467 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc) 467 \x1b[0;31mb\x1b[0m\x1b[0;36m 13:e23b5505d1ad\x1b[0m (esc)
468 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc) 468 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m\x1b[0;36m 7:10ff5895aa57\x1b[0m (esc)
469 \x1b[0;34mc\x1b[0m \x1b[0;36m 14:f894c25619d3\x1b[0m (closed) (esc) 469 \x1b[0;34mc\x1b[0m\x1b[0;36m 14:f894c25619d3\x1b[0m (closed) (esc)
470 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc) 470 \x1b[0;35ma\x1b[0m\x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
471 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc) 471 \x1b[0;35mdefault\x1b[0m\x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
472 472
473 template output: 473 template output:
474 474
475 $ hg branches -Tjson --closed 475 $ hg branches -Tjson --closed
476 [ 476 [