tests/test-options.t
author Pierre-Yves David <pierre-yves.david@octobus.net>
Tue, 22 Jan 2019 10:45:09 -0500
branchmercurial-4.8
changeset 4354 cb39b767ad3c
parent 4185 9bce7e6c18b3
child 4549 dcaf340841ef
permissions -rw-r--r--
test-compat: reverse test change from 9bce7e6c18b3 This change are 4.9 only

  $ cat >> $HGRCPATH <<EOF
  > [ui]
  > logtemplate={rev}:{node|short}[{bookmarks}] ({obsolete}/{phase}) {desc|firstline}\n
  > [extensions]
  > EOF
  $ echo "evolve=$(echo $(dirname $TESTDIR))/hgext3rd/evolve/" >> $HGRCPATH

  $ mkcommit() {
  >    echo "$1" > "$1"
  >    hg add "$1"
  >    hg ci -m "add $1"
  > }

  $ hg init repo
  $ cd repo
  $ mkcommit a
  $ mkcommit b

test disabling commands

  $ cat >> .hg/hgrc <<EOF
  > [experimental]
  > evolution=createmarkers
  >   allowunstable
  >   exchange
  > EOF
  $ hg prune | head -n 2
  hg: unknown command 'prune'
  (use 'hg help' for a list of commands)