tests/test-hook.t
branchstable
changeset 46370 7289eac777ec
parent 46369 0760282995cf
child 46371 b910be772eb9
equal deleted inserted replaced
46369:0760282995cf 46370:7289eac777ec
  1405 HGPLAIN setting in hooks
  1405 HGPLAIN setting in hooks
  1406 ========================
  1406 ========================
  1407 
  1407 
  1408   $ cat << EOF >> .hg/hgrc
  1408   $ cat << EOF >> .hg/hgrc
  1409   > [hooks]
  1409   > [hooks]
  1410   > pre-version.testing-default=echo '### default ###' plain: \$HGPLAIN
  1410   > pre-version.testing-default=echo '### default ###' plain: \${HGPLAIN:-'<unset>'}
       
  1411   > pre-version.testing-yes=echo '### yes #######' plain: \${HGPLAIN:-'<unset>'}
       
  1412   > pre-version.testing-yes:run-with-plain=yes
       
  1413   > pre-version.testing-no=echo '### no ########' plain: \${HGPLAIN:-'<unset>'}
       
  1414   > pre-version.testing-no:run-with-plain=no
  1411   > EOF
  1415   > EOF
  1412 
  1416 
  1413   $ (unset HGPLAIN; hg version --quiet)
  1417   $ (unset HGPLAIN; hg version --quiet)
  1414   ### default ### plain: 1
  1418   ### default ### plain: 1
       
  1419   ### yes ####### plain: 1
       
  1420   ### no ######## plain: <unset>
  1415   Mercurial Distributed SCM (*) (glob)
  1421   Mercurial Distributed SCM (*) (glob)
  1416 
  1422 
  1417   $ HGPLAIN=1 hg version --quiet
  1423   $ HGPLAIN=1 hg version --quiet
  1418   ### default ### plain: 1
  1424   ### default ### plain: 1
       
  1425   ### yes ####### plain: 1
       
  1426   ### no ######## plain: <unset>
  1419   Mercurial Distributed SCM (*) (glob)
  1427   Mercurial Distributed SCM (*) (glob)