tests/test-branches.t
changeset 23172 e955549cd045
parent 22705 d4869b280cd6
child 23787 678f53865c68
equal deleted inserted replaced
23171:8afae1d5d108 23172:e955549cd045
   417   date:        Thu Jan 01 00:00:09 1970 +0000
   417   date:        Thu Jan 01 00:00:09 1970 +0000
   418   summary:     prune bad branch
   418   summary:     prune bad branch
   419   
   419   
   420 default branch colors:
   420 default branch colors:
   421 
   421 
   422   $ echo "[extensions]" >> $HGRCPATH
   422   $ cat <<EOF >> $HGRCPATH
   423   $ echo "color =" >> $HGRCPATH
   423   > [extensions]
   424   $ echo "[color]" >> $HGRCPATH
   424   > color =
   425   $ echo "mode = ansi" >> $HGRCPATH
   425   > [color]
       
   426   > mode = ansi
       
   427   > EOF
   426 
   428 
   427   $ hg up -C c
   429   $ hg up -C c
   428   3 files updated, 0 files merged, 2 files removed, 0 files unresolved
   430   3 files updated, 0 files merged, 2 files removed, 0 files unresolved
   429   $ hg commit -d '9 0' --close-branch -m 'reclosing this branch'
   431   $ hg commit -d '9 0' --close-branch -m 'reclosing this branch'
   430   $ hg up -C b
   432   $ hg up -C b
   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)
   444   \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)
   445   \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)
   446   \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)
   447   \x1b[0;0mdefault\x1b[0m\x1b[0;33m                        0:19709c5a4e75\x1b[0m (inactive) (esc)
   446 
   448 
   447   $ echo "[extensions]" >> $HGRCPATH
   449   $ cat <<EOF >> $HGRCPATH
   448   $ echo "color =" >> $HGRCPATH
   450   > [extensions]
   449   $ echo "[color]" >> $HGRCPATH
   451   > color =
   450   $ echo "branches.active = green" >> $HGRCPATH
   452   > [color]
   451   $ echo "branches.closed = blue" >> $HGRCPATH
   453   > branches.active = green
   452   $ echo "branches.current = red" >> $HGRCPATH
   454   > branches.closed = blue
   453   $ echo "branches.inactive = magenta" >> $HGRCPATH
   455   > branches.current = red
   454   $ echo "log.changeset = cyan" >> $HGRCPATH
   456   > branches.inactive = magenta
       
   457   > log.changeset = cyan
       
   458   > EOF
   455 
   459 
   456 custom branch colors:
   460 custom branch colors:
   457 
   461 
   458   $ hg branches --color=always
   462   $ hg branches --color=always
   459   \x1b[0;31mb\x1b[0m\x1b[0;36m                             13:e23b5505d1ad\x1b[0m (esc)
   463   \x1b[0;31mb\x1b[0m\x1b[0;36m                             13:e23b5505d1ad\x1b[0m (esc)