[issue1827] Hooks Update & Commit not completely post operation

David Shinn mercurial-bugs at selenic.com
Tue Sep 8 23:02:49 UTC 2009


New submission from David Shinn <david.shinn at gmail.com>:

update and commit hooks are supposed to operate after the update and commit
operations respectively.  However, command-line hg commands (run as hooks)
return information as if from the pre-update/commit revision.  For example,
if you have the following hook:

[hooks]
update = hg id

then an update to a different revision should output the node id of the
updated revision, not the previous one.  However, this hook results as if
operated before the update is complete.

Fix would require that post operation hooks (e.g., update, commit, etc)
occur completely after the operation so that hg commands can be used in the
hooks.

----------
messages: 10489
nosy: dyshinn
priority: bug
status: unread
title: Hooks Update & Commit not completely post operation

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1827>
____________________________________________________



More information about the Mercurial-devel mailing list