view tests/test-requires.t @ 14539:558ec14ba6be

extensions: make disabled()/disabledext() load prebuilt index if available __index__ contains a dict of {name: desc} of all extensions.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 04 Jun 2011 20:19:30 +0900
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]