Show More
@@ -1390,3 +1390,30 b' Non-blocking hook' | |||||
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 | |||
|
1411 | > EOF | |||
|
1412 | ||||
|
1413 | $ (unset HGPLAIN; hg version --quiet) | |||
|
1414 | ### default ### plain: 1 | |||
|
1415 | Mercurial Distributed SCM (*) (glob) | |||
|
1416 | ||||
|
1417 | $ HGPLAIN=1 hg version --quiet | |||
|
1418 | ### default ### plain: 1 | |||
|
1419 | Mercurial Distributed SCM (*) (glob) |
General Comments 0
You need to be logged in to leave comments.
Login now