On Mon, Apr 1, 2013 at 12:37 PM, Randy Syring <[email protected]> wrote:

> I have docs stored in mercurial repositories.  I'd like to be able to run
> a cron-job or something that automatically build HTLM docs form the sphinx
> sources whenever a change was committed to a certain branch in our
> mercurial repository.  Does something like this already exist or should I
> just script it?
>
> Thanks.
>
> It sounds like what you want is a mercurial hook:

http://mercurial.selenic.com/wiki/Hook
http://mercurial.selenic.com/wiki/HookExamples
http://hgbook.red-bean.com/read/handling-repository-events-with-hooks.html

Possibly you want to use the "changegroup" hook. (You probably don't want
the "commit" hook, which would run once for every commit.  It sounds like
you want it to run once for every _group_ of commits)

--
Kevin Horn

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to