tests/test-hgrc.t
changeset 31686 fbc4eb8e2433
parent 31064 4431add9aef9
child 35393 4441705b7111
equal deleted inserted replaced
31685:d83e51654c8a 31686:fbc4eb8e2433
   174   --config: ui.traceback=True
   174   --config: ui.traceback=True
   175   --verbose: ui.verbose=False
   175   --verbose: ui.verbose=False
   176   --debug: ui.debug=True
   176   --debug: ui.debug=True
   177   --quiet: ui.quiet=False
   177   --quiet: ui.quiet=False
   178 
   178 
       
   179 with environment variables
       
   180 
       
   181   $ PAGER=p1 EDITOR=e1 VISUAL=e2 hg showconfig --debug
       
   182   set config by: $EDITOR
       
   183   set config by: $VISUAL
       
   184   set config by: $PAGER
       
   185   read config from: $TESTTMP/hgrc
       
   186   repo: bundle.mainreporoot=$TESTTMP
       
   187   $PAGER: pager.pager=p1
       
   188   $VISUAL: ui.editor=e2
       
   189   --verbose: ui.verbose=False
       
   190   --debug: ui.debug=True
       
   191   --quiet: ui.quiet=False
       
   192 
   179 plain mode with exceptions
   193 plain mode with exceptions
   180 
   194 
   181   $ cat > plain.py <<EOF
   195   $ cat > plain.py <<EOF
   182   > from mercurial import commands, extensions
   196   > from mercurial import commands, extensions
   183   > def _config(orig, ui, repo, *values, **opts):
   197   > def _config(orig, ui, repo, *values, **opts):