[issue2904] Hooks executed on subrepository operations
IsaacJurado
bugs at mercurial.selenic.com
Fri Jul 15 14:21:48 CDT 2011
New submission from IsaacJurado <diptongo at gmail.com>:
Consider the following scenario: there is a repository A that contains a
subrepository S. An preupdate hook is defined in repository A's .hg/hgrc.
If a particular update implies also an update on S, the preupdate hook
defined for A is also executed in the context of repository S.
The only way to prevent this behaviour is to explicitly define an empty
preupdate hook in S's .hg/hgrc.
This pattern happens for all hooks whose triggering operation may imply
subrepository recurson.
Apparently, subrepository recursion merges the repository's .hg/hgrc with
its container's .hg/hgrc.
----------
messages: 16856
nosy: IsaacJurado
priority: bug
status: unread
title: Hooks executed on subrepository operations
topic: 1.9, hooks
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2904>
____________________________________________________
More information about the Mercurial-devel
mailing list