node on changeset (was: making notify extension report for named branch)
Todd Cooper
todd_cooper at yahoo.com
Mon Dec 14 12:51:08 CST 2009
Thanks for the quick reply....
I am hacking the notify hook to be able to send email on a changeset name.
I assume the notify hook is called once per node since in the code it sets ctx to be the node.
Thanks for the 'ctx.branch()' ... That is what I was just about to look for.
________________________________
From: Matt Mackall <mpm at selenic.com>
To: Todd Cooper <todd_cooper at yahoo.com>
Cc: mercurial at selenic.com
Sent: Mon, December 14, 2009 1:39:46 PM
Subject: Re: node on changeset (was: making notify extension report for named branch)
On Mon, 2009-12-14 at 10:35 -0800, Todd Cooper wrote:
> Hearing no response. I decided to code it myself.
> I am not a python expert, but proficient enough.
> My question is on hg design.
>
> When a hook is called, is there only one branch per changeset?
Yes.
> In my hook I need to get the list of branches affected by the change
> and I assume that would be one changeset per node.
ctx.branch().
> I futhermore assume that if a pull/push/etc. is done that the hook is
> called once for each changeset/node.
Depends on which hook you're using.
> Is there a developer's mailing list that I should post this to?
mercurial-devel at selenic.com
--
http://selenic.com : development and support for Mercurial and Linux
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20091214/037fa252/attachment.htm>
More information about the Mercurial
mailing list