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