tests/test-requires.t
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
Sat, 25 Jun 2011 02:30:24 +0200
branchstable
changeset 14746 72e4fcb43227
parent 14483 973959fbe8ec
child 16913 f2719b387380
permissions -rw-r--r--
requirements: show all missing features in the error message. Displaying all missing featureis help people to solve the issue (choosing the right version, creation the right repo)

  $ 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 features 'indoor-pool' (upgrade Mercurial)!
  [255]
  $ echo outdoor-pool >> .hg/requires
  $ hg tip
  abort: unknown repository format: requires features 'indoor-pool', 'outdoor-pool' (upgrade Mercurial)!
  [255]