Writing a hook
Kevin Maris
lounginsince84 at gmail.com
Fri Feb 26 15:44:37 UTC 2010
Good idea. Mind if I add to it later?
On Thu, Feb 25, 2010 at 6:31 PM, Greg Ward <greg-hg at gerg.ca> wrote:
> On Thu, Feb 25, 2010 at 1:35 PM, Kevin Maris <lounginsince84 at gmail.com> wrote:
>> Hi all, I was wondering if I could get some help. I'm writing an
>> in-process hook that will be in remote repositories hgrc files. The
>> purpose for the hook is to fire after a changegroup has been pushed
>> into the remote repo from a developer. I've seen the red-bean hgbook
>> section, but it's not much help for doing anything useful. The bit
>> I'm stuck on is generating a diff between the new tip and the revision
>> before that. Any suggestions on how to go about it programatically in
>> python? Are there any good reading materials for writing hooks?
>
> Try the Mercurial wiki as a supplement to the book:
> http://mercurial.selenic.com/wiki/. The best resource right now is
> MercurialApi, but it's a bit terse and more useful for extension
> authors than hook authors.
>
> So I've just started writing a new page: HookExamples. Hopefully it
> will exist by the time you see this email message! ;-)
>
> Greg
>
>
>> _______________________________________________
>> Mercurial mailing list
>> Mercurial at selenic.com
>> http://selenic.com/mailman/listinfo/mercurial
>>
>
More information about the Mercurial
mailing list