Show More
@@ -29,7 +29,7 b' Create an extension to test bundle2 remo' | |||||
29 | > from the given file. |
|
29 | > from the given file. | |
30 | > - raw-remote-changegroup <python expression> |
|
30 | > - raw-remote-changegroup <python expression> | |
31 | > Creates a remote-changegroup part with the data given in the |
|
31 | > Creates a remote-changegroup part with the data given in the | |
32 |
> |
|
32 | > Python expression as parameters. The Python expression is | |
33 | > evaluated with eval, and is expected to be a dict. |
|
33 | > evaluated with eval, and is expected to be a dict. | |
34 | > """ |
|
34 | > """ | |
35 | > def newpart(name, data=''): |
|
35 | > def newpart(name, data=''): |
@@ -4,7 +4,7 b' commit hooks can see env vars' | |||||
4 |
|
4 | |||
5 | $ cat > $TESTTMP/txnabort.checkargs.py <<EOF |
|
5 | $ cat > $TESTTMP/txnabort.checkargs.py <<EOF | |
6 | > def showargs(ui, repo, hooktype, **kwargs): |
|
6 | > def showargs(ui, repo, hooktype, **kwargs): | |
7 |
> ui.write('%s |
|
7 | > ui.write('%s Python hook: %s\n' % (hooktype, ','.join(sorted(kwargs)))) | |
8 | > EOF |
|
8 | > EOF | |
9 |
|
9 | |||
10 | $ hg init a |
|
10 | $ hg init a | |
@@ -175,7 +175,7 b' more there after' | |||||
175 | 5:6f611f8018c1 |
|
175 | 5:6f611f8018c1 | |
176 | pretxncommit.forbid hook: HG_HOOKNAME=pretxncommit.forbid1 HG_HOOKTYPE=pretxncommit HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a |
|
176 | pretxncommit.forbid hook: HG_HOOKNAME=pretxncommit.forbid1 HG_HOOKTYPE=pretxncommit HG_NODE=6f611f8018c10e827fee6bd2bc807f937e761567 HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 HG_PENDING=$TESTTMP/a | |
177 | transaction abort! |
|
177 | transaction abort! | |
178 |
txnabort |
|
178 | txnabort Python hook: txnid,txnname | |
179 | txnabort hook: HG_HOOKNAME=txnabort.1 HG_HOOKTYPE=txnabort HG_TXNID=TXN:$ID$ HG_TXNNAME=commit |
|
179 | txnabort hook: HG_HOOKNAME=txnabort.1 HG_HOOKTYPE=txnabort HG_TXNID=TXN:$ID$ HG_TXNNAME=commit | |
180 | rollback completed |
|
180 | rollback completed | |
181 | abort: pretxncommit.forbid1 hook exited with status 1 |
|
181 | abort: pretxncommit.forbid1 hook exited with status 1 |
General Comments 0
You need to be logged in to leave comments.
Login now