Mercurial > hg
comparison tests/test-hook.t @ 23292:e44399c494ab
changelog: register changelog.i.a as a temporary file
The file is registered to make sure the transaction is cleaned up in all cases.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Sat, 08 Nov 2014 17:08:09 +0000 |
parents | 7c13c9404c2c |
children | 19ebd2f88fc7 |
comparison
equal
deleted
inserted
replaced
23291:03d2d6931836 | 23292:e44399c494ab |
---|---|
146 abort: pretxncommit.forbid1 hook exited with status 1 | 146 abort: pretxncommit.forbid1 hook exited with status 1 |
147 [255] | 147 [255] |
148 $ hg -q tip | 148 $ hg -q tip |
149 4:539e4b31b6dc | 149 4:539e4b31b6dc |
150 | 150 |
151 (Check that no 'changelog.i.a' file were left behind) | |
152 | |
153 $ ls -1 .hg/store/ | |
154 00changelog.i | |
155 00manifest.i | |
156 data | |
157 fncache | |
158 journal.phaseroots | |
159 phaseroots | |
160 undo | |
161 undo.phaseroots | |
162 | |
163 | |
151 precommit hook can prevent commit | 164 precommit hook can prevent commit |
152 | 165 |
153 $ echo "precommit.forbid = python \"$TESTDIR/printenv.py\" precommit.forbid 1" >> .hg/hgrc | 166 $ echo "precommit.forbid = python \"$TESTDIR/printenv.py\" precommit.forbid 1" >> .hg/hgrc |
154 $ hg commit -m 'fail' -d '4 0' | 167 $ hg commit -m 'fail' -d '4 0' |
155 precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 | 168 precommit hook: HG_PARENT1=539e4b31b6dc99b3cfbaa6b53cbc1c1f9a1e3a10 |