hg notify inter-repo mechanics
Mads Kiilerich
mads at kiilerich.com
Thu Jan 1 18:40:13 UTC 2015
On 12/29/2014 06:34 PM, John Turner wrote:
> Greetings,
>
> I'm seeking some clarity on the mechanics and/or best-practices for
> implementation of hg notify, namely, which side of the execution chain
> should invoke the mail notification, given a local(n) <-->
> centralized(1) workflow.
>
> Seeing as the notify hook in my local mercurial.ini setup invokes
> email notification during pushes/pulls/etc. as opposed to the
> centralized mercurial.ini, then it seems each developer would likewise
> need to setup the same local notify config in order to ensure a
> consistent notification process across the team. My initial
> expectation was that the passive repo (i.e., the central repo) would
> invoke the mail notification, and thereby obviate the need to define a
> notify config for each local developer, but it appears that hg notify
> executes from the active repo only.
Correct, doing it on the central server makes more sense than doing it
on the "client" side.
The server side hg is however not "passive". The example in the
beginning of "hg help notify" shows how to use hooks that will be
invoked on the server side when a client push changes.
/Mads
More information about the Mercurial
mailing list