comparison tests/test-branches.t @ 12942:05fffd665170 stable

tests: use (esc) for all non-ASCII test output
author Mads Kiilerich <mads@kiilerich.com>
date Mon, 08 Nov 2010 01:41:41 +0100
parents 4134686b83e1
children e0f07847f8de
comparison
equal deleted inserted replaced
12941:b911cb80c671 12942:05fffd665170
355 3 files updated, 0 files merged, 2 files removed, 0 files unresolved 355 3 files updated, 0 files merged, 2 files removed, 0 files unresolved
356 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch' 356 $ hg commit -d '9 0' --close-branch -m 'reclosing this branch'
357 $ hg up -C b 357 $ hg up -C b
358 2 files updated, 0 files merged, 3 files removed, 0 files unresolved 358 2 files updated, 0 files merged, 3 files removed, 0 files unresolved
359 $ hg branches --color=always 359 $ hg branches --color=always
360 b  13:6ac12926b8c3 360 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
361 a branch name much longer than the default justification used by branches 7:10ff5895aa57 361 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
362 a  5:d8cbc61dbaa6 (inactive) 362 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
363 default  0:19709c5a4e75 (inactive) 363 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
364 364
365 default closed branch color: 365 default closed branch color:
366 366
367 $ hg branches --color=always --closed 367 $ hg branches --color=always --closed
368 b  13:6ac12926b8c3 368 \x1b[0;32mb\x1b[0m \x1b[0;33m 13:6ac12926b8c3\x1b[0m (esc)
369 a branch name much longer than the default justification used by branches 7:10ff5895aa57 369 \x1b[0;0ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;33m7:10ff5895aa57\x1b[0m (esc)
370 c  14:717d2e6fabe1 (closed) 370 \x1b[0;30;1mc\x1b[0m \x1b[0;33m 14:717d2e6fabe1\x1b[0m (closed) (esc)
371 a  5:d8cbc61dbaa6 (inactive) 371 \x1b[0;0ma\x1b[0m \x1b[0;33m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
372 default  0:19709c5a4e75 (inactive) 372 \x1b[0;0mdefault\x1b[0m \x1b[0;33m 0:19709c5a4e75\x1b[0m (inactive) (esc)
373 373
374 $ echo "[extensions]" >> $HGRCPATH 374 $ echo "[extensions]" >> $HGRCPATH
375 $ echo "color =" >> $HGRCPATH 375 $ echo "color =" >> $HGRCPATH
376 $ echo "[color]" >> $HGRCPATH 376 $ echo "[color]" >> $HGRCPATH
377 $ echo "branches.active = green" >> $HGRCPATH 377 $ echo "branches.active = green" >> $HGRCPATH
381 $ echo "log.changeset = cyan" >> $HGRCPATH 381 $ echo "log.changeset = cyan" >> $HGRCPATH
382 382
383 custom branch colors: 383 custom branch colors:
384 384
385 $ hg branches --color=always 385 $ hg branches --color=always
386 b  13:6ac12926b8c3 386 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
387 a branch name much longer than the default justification used by branches 7:10ff5895aa57 387 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
388 a  5:d8cbc61dbaa6 (inactive) 388 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
389 default  0:19709c5a4e75 (inactive) 389 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)
390 390
391 custom closed branch color: 391 custom closed branch color:
392 392
393 $ hg branches --color=always --closed 393 $ hg branches --color=always --closed
394 b  13:6ac12926b8c3 394 \x1b[0;31mb\x1b[0m \x1b[0;36m 13:6ac12926b8c3\x1b[0m (esc)
395 a branch name much longer than the default justification used by branches 7:10ff5895aa57 395 \x1b[0;32ma branch name much longer than the default justification used by branches\x1b[0m \x1b[0;36m7:10ff5895aa57\x1b[0m (esc)
396 c  14:717d2e6fabe1 (closed) 396 \x1b[0;34mc\x1b[0m \x1b[0;36m 14:717d2e6fabe1\x1b[0m (closed) (esc)
397 a  5:d8cbc61dbaa6 (inactive) 397 \x1b[0;35ma\x1b[0m \x1b[0;36m 5:d8cbc61dbaa6\x1b[0m (inactive) (esc)
398 default  0:19709c5a4e75 (inactive) 398 \x1b[0;35mdefault\x1b[0m \x1b[0;36m 0:19709c5a4e75\x1b[0m (inactive) (esc)