view tests/test-chg.t @ 29105:548e9c8c2841

sslutil: document and slightly refactor sslkwargs This will help me and any reviewers keep sane as this code is refactored.
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 05 May 2016 00:31:11 -0700
parents 983353035cec
children 148a9a5379f0
line wrap: on
line source

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