Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/tests/test-hook.t Wed Nov 05 09:27:08 2014 +0000 +++ b/tests/test-hook.t Sat Nov 08 17:08:09 2014 +0000 @@ -148,6 +148,19 @@ $ hg -q tip 4:539e4b31b6dc +(Check that no 'changelog.i.a' file were left behind) + + $ ls -1 .hg/store/ + 00changelog.i + 00manifest.i + data + fncache + journal.phaseroots + phaseroots + undo + undo.phaseroots + + precommit hook can prevent commit $ echo "precommit.forbid = python \"$TESTDIR/printenv.py\" precommit.forbid 1" >> .hg/hgrc