Hook getting added multiple times

Angel Ezquerra angel.ezquerra at gmail.com
Sun Oct 16 09:42:49 UTC 2011


Hi,

I am working on an extension that adds a hook through its reposetup()
function. The problem is that reposetup() seems to be called each time
that the repo is open in TortoiseHg. Thus it appears as if the hooks
are added multiple times if I open and close the repo tab in
TortoiseHg multipe times.

Is this a problem? will the hooks be executed twice? If so, is there a
way to check whether a hook has already been added?

Thanks,

Angel



More information about the Mercurial-devel mailing list