pretxncommit hook behaviour

Christian Ebert blacktrash at gmx.net
Mon May 29 02:39:42 CDT 2006


Hello,

I don't understand the following behaviour of the pretxncommit
hook:

$ cd PretxncommitTest
$ hg init
$ cat >.hg/hgrc <<EOT
[hooks]
pretxncommit = date >>a
EOT
$ echo testing >a
$ hg add; hg commit -m zero
$ cat a
testing
Mon May 29 08:17:26 BST 2006
$ hg cat a
testing
$ hg export tip
testing
$ hg st
$ hg diff
$ hg up -C 0
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
$ cat a
testing

Could someone explain me why in the above case the date is not in
the changeset, but still hg diff doesn't show anything?

Probably mislead by *pre*txncommit I believed that the change
that happens in this hook should also be part of the changeset,
but at least it would be nice if someone could elaborate on why
the above behaviour is consistent.

TIA

c
-- 
_B A U S T E L L E N_ lesen!  --->> <http://www.blacktrash.org/baustellen.html>


More information about the Mercurial mailing list