Show More
@@ -1123,9 +1123,7 b' def branches(ui, repo, active=False, clo' | |||
|
1123 | 1123 | fm.write('branch', '%s', tag, label=label) |
|
1124 | 1124 | rev = ctx.rev() |
|
1125 | 1125 | padsize = max(31 - len(str(rev)) - encoding.colwidth(tag), 0) |
|
1126 | fmt = ' ' * padsize + '%d:%s' | |
|
1127 | if not ui.quiet: | |
|
1128 | fm.plain(' ') | |
|
1126 | fmt = ' ' * padsize + ' %d:%s' | |
|
1129 | 1127 | fm.condwrite(not ui.quiet, 'rev node', fmt, rev, hexfunc(ctx.node()), |
|
1130 | 1128 | label='log.changeset changeset.%s' % ctx.phasestr()) |
|
1131 | 1129 | if not ui.quiet: |
@@ -430,19 +430,19 b' default branch colors:' | |||
|
430 | 430 | $ hg up -C b |
|
431 | 431 | 2 files updated, 0 files merged, 3 files removed, 0 files unresolved |
|
432 | 432 | $ hg branches --color=always |
|
433 |
\x1b[0;32mb\x1b[0m |
|
|
434 |
\x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m |
|
|
435 |
\x1b[0;0ma\x1b[0m |
|
|
436 |
\x1b[0;0mdefault\x1b[0m |
|
|
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;33m 7:10ff5895aa57\x1b[0m (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) | |
|
437 | 437 | |
|
438 | 438 | default closed branch color: |
|
439 | 439 | |
|
440 | 440 | $ hg branches --color=always --closed |
|
441 |
\x1b[0;32mb\x1b[0m |
|
|
442 |
\x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m |
|
|
443 |
\x1b[0;30;1mc\x1b[0m |
|
|
444 |
\x1b[0;0ma\x1b[0m |
|
|
445 |
\x1b[0;0mdefault\x1b[0m |
|
|
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;33m 7:10ff5895aa57\x1b[0m (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) | |
|
445 | \x1b[0;0mdefault\x1b[0m\x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc) | |
|
446 | 446 | |
|
447 | 447 | $ echo "[extensions]" >> $HGRCPATH |
|
448 | 448 | $ echo "color =" >> $HGRCPATH |
@@ -456,19 +456,19 b' default closed branch color:' | |||
|
456 | 456 | custom branch colors: |
|
457 | 457 | |
|
458 | 458 | $ hg branches --color=always |
|
459 |
\x1b[0;31mb\x1b[0m |
|
|
460 |
\x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m |
|
|
461 |
\x1b[0;35ma\x1b[0m |
|
|
462 |
\x1b[0;35mdefault\x1b[0m |
|
|
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;36m 7:10ff5895aa57\x1b[0m (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) | |
|
463 | 463 | |
|
464 | 464 | custom closed branch color: |
|
465 | 465 | |
|
466 | 466 | $ hg branches --color=always --closed |
|
467 |
\x1b[0;31mb\x1b[0m |
|
|
468 |
\x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m |
|
|
469 |
\x1b[0;34mc\x1b[0m |
|
|
470 |
\x1b[0;35ma\x1b[0m |
|
|
471 |
\x1b[0;35mdefault\x1b[0m |
|
|
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;36m 7:10ff5895aa57\x1b[0m (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) | |
|
471 | \x1b[0;35mdefault\x1b[0m\x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc) | |
|
472 | 472 | |
|
473 | 473 | template output: |
|
474 | 474 |
General Comments 0
You need to be logged in to leave comments.
Login now