1388 tag: tip |
1388 tag: tip |
1389 user: test |
1389 user: test |
1390 date: Thu Jan 01 00:00:00 1970 +0000 |
1390 date: Thu Jan 01 00:00:00 1970 +0000 |
1391 summary: a |
1391 summary: a |
1392 |
1392 |
|
1393 |
|
1394 unsetup the test |
|
1395 ---------------- |
|
1396 |
|
1397 # touch the file to unconfuse chg with a diffrent mtime |
|
1398 $ sleep 1 |
|
1399 $ touch $TESTTMP/untrusted.py |
|
1400 $ cat << EOF >> $HGRCPATH |
|
1401 > [extensions] |
|
1402 > untrusted=! |
|
1403 > EOF |
|
1404 |
|
1405 HGPLAIN setting in hooks |
|
1406 ======================== |
|
1407 |
|
1408 $ cat << EOF >> .hg/hgrc |
|
1409 > [hooks] |
|
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 |
|
1415 > pre-version.testing-auto=echo '### auto ######' plain: \${HGPLAIN:-'<unset>'} |
|
1416 > pre-version.testing-auto:run-with-plain=auto |
|
1417 > EOF |
|
1418 |
|
1419 $ (unset HGPLAIN; hg version --quiet) |
|
1420 ### default ### plain: 1 |
|
1421 ### yes ####### plain: 1 |
|
1422 ### no ######## plain: <unset> |
|
1423 ### auto ###### plain: <unset> |
|
1424 Mercurial Distributed SCM (*) (glob) |
|
1425 |
|
1426 $ HGPLAIN=1 hg version --quiet |
|
1427 ### default ### plain: 1 |
|
1428 ### yes ####### plain: 1 |
|
1429 ### no ######## plain: <unset> |
|
1430 ### auto ###### plain: 1 |
|
1431 Mercurial Distributed SCM (*) (glob) |