view tests/test-requires.t @ 14495:ad6ad51cc0dd

color: fix --color=always when output is piped Also restructures the mode determination as discussed on IRC. I tried to simplify the code too, while keeping the original semantics except for the case of --color=always.
author Peter Arrenbrecht <peter.arrenbrecht@gmail.com>
date Wed, 25 May 2011 18:48:00 +0200
parents 973959fbe8ec
children 72e4fcb43227
line wrap: on
line source

  $ hg init t
  $ cd t
  $ echo a > a
  $ hg add a
  $ hg commit -m test
  $ rm .hg/requires
  $ hg tip
  abort: index 00changelog.i unknown format 2!
  [255]
  $ echo indoor-pool > .hg/requires
  $ hg tip
  abort: unknown repository format: requires feature 'indoor-pool' (upgrade Mercurial)!
  [255]