tests/test-options.t
author Matt Harbison <matt_harbison@yahoo.com>
Fri, 04 Jan 2019 19:17:38 -0500
branchstable
changeset 4334 24f90069b772
parent 4195 4803bfe8db17
child 4185 9bce7e6c18b3
child 4202 f555039d1a08
permissions -rw-r--r--
tests: conditionalize some output for Windows A couple of these were already present, but out of place.

  $ 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)