Mercurial > public > mercurial-scm > hg-stable
diff tests/test-hook.t @ 33261:be49f3fdcd10
tests: capitalize Python when it's not used as a command name
This avoids some false positives in an upcoming check-code rule.
Reviewers: krbullock
Reviewed By: krbullock
Differential Revision: https://phab.mercurial-scm.org/D3
author | Augie Fackler <augie@google.com> |
---|---|
date | Wed, 05 Jul 2017 11:09:55 -0500 |
parents | fe0667cc521e |
children | 24849d53697d |
line wrap: on
line diff
--- a/tests/test-hook.t Wed Jul 05 11:55:26 2017 -0400 +++ b/tests/test-hook.t Wed Jul 05 11:09:55 2017 -0500 @@ -4,7 +4,7 @@ $ cat > $TESTTMP/txnabort.checkargs.py <<EOF > def showargs(ui, repo, hooktype, **kwargs): - > ui.write('%s python hook: %s\n' % (hooktype, ','.join(sorted(kwargs)))) + > ui.write('%s Python hook: %s\n' % (hooktype, ','.join(sorted(kwargs)))) > EOF $ hg init a @@ -175,7 +175,7 @@ 5:6f611f8018c1 pretxncommit.forbid hook: HG_HOOKNAME=pretxncommit.forbid1 HG_HOOKTYPE=pretxncommit HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a transaction abort! - txnabort python hook: txnid,txnname + txnabort Python hook: txnid,txnname txnabort hook: HG_HOOKNAME=txnabort.1 HG_HOOKTYPE=txnabort HG_TXNID=TXN:$ID$ HG_TXNNAME=commit rollback completed abort: pretxncommit.forbid1 hook exited with status 1