monotone-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Monotone-devel] web update hooks & script


From: Ben Walton
Subject: Re: [Monotone-devel] web update hooks & script
Date: Fri, 26 Jan 2007 13:44:30 -0500

I just did something similar the other night.  Mine is much simpler
though.  It uses the netsync hooks on the server to run a script if
there were revisions in (I don't care about branches in this case as
we only ever have one for this particular project)...the script does a
merge && update.  It then runs make, which builds html-ized texinfo
documentation and rsyncs the output of that to the web location.

Works well so far, but I suspect your version is much more useful
globally (eg contribs/).

This was my first poke at monotonerc too.

-Ben

On 1/26/07, Thomas Keller <address@hidden> wrote:
Hugo Cornelis schrieb:
> Mmmh, let me see if I understand this:
>
> So the script 'listens' to a particular branch, and on commit, pushes
> the branch to a remote repository or updates a different workspace ?

It updates a different workspace.

> Just questions: can you call monotone do to a checkout from the hooks
> you use ?  So is it possible to integrate the shell script in the hook
> ?  Or doesn't it make any sense ?

I tried that, but njs said that its not possible to chdir in monotonerc
without screwing things up, so I did this part in an external script.
(AFAIK one needs the lua-fs extension to get something like fs.chdir()
and I don't know if mtn has this linked.)

Of course _if_ there is a way to incorporate both, then I'm happy to
patch it - this was just my first bigger experiment with monotonerc at
all =)

Thomas.

--
- "I know that I don't know." (Sokrates)
Guitone, a frontend for monotone: http://guitone.berlios.de
Music lyrics and more: http://musicmademe.com


_______________________________________________
Monotone-devel mailing list
address@hidden
http://lists.nongnu.org/mailman/listinfo/monotone-devel



--
---------------------------------------------------------------------------------------------------------------------------
Ben Walton <address@hidden>

Unanswered questions are far less dangerous than unquestioned answers.
- The Roadside Pulpit
---------------------------------------------------------------------------------------------------------------------------




reply via email to

[Prev in Thread] Current Thread [Next in Thread]