tests/test-chg.t
author Pulkit Goyal <7895pulkit@gmail.com>
Mon, 16 May 2016 04:28:22 +0530
changeset 29194 3bea82dd4c4e
parent 29088 983353035cec
child 29274 148a9a5379f0
permissions -rw-r--r--
py3: make tests/test-atomictempfile.py use absolute_import

init repo

  $ hg init foo
  $ cd foo

ill-formed config

  $ hg status
  $ echo '=brokenconfig' >> $HGRCPATH
  $ hg status
  hg: parse error at * (glob)
  [255]

alias having an environment variable and set to use pager

  $ rm $HGRCPATH
  $ cat >> $HGRCPATH <<'EOF'
  > [ui]
  > formatted = yes
  > [extensions]
  > pager =
  > [pager]
  > pager = sed -e 's/^/P/'
  > attend = printa
  > [alias]
  > printa = log -T "$A\n" -r 0
  > EOF

  $ A=1 hg printa
  P1
  $ A=2 hg printa
  P2