[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Monotone-devel] mtn lua execute
From: |
Timothy Brownawell |
Subject: |
Re: [Monotone-devel] mtn lua execute |
Date: |
Tue, 05 Sep 2006 14:21:04 -0500 |
On Tue, 2006-09-05 at 19:29 +0100, Andy Jones wrote:
> Here's a wild idea for the wishlist. One that shouldn't take much
> work to implement.
>
> We already have "mtn db execute" to run an unspecified SQL query. How
> about a similar command to run an unspecified lua function from
> monotonerc? Maybe "mtn db luaexec <function> [...]"?
Our lua hooks don't/can't make monotone do anything. They're used either
to let monotone call external commands (email to a commits list, for
example) or for configuration (trust hooks).
> The main use I can see for this is release control, where you want to
> automate certain behaviours specific to the local disk or network, but
> to tie it into the version control hooks within Monotone. But I would
> have thought that the uses of such a function would be innumerate.
>
> Yes, I know you can use mtn automate and the shell to do a great deal.
> But Lua is +much+ more powerful than Bash. And I can't be the only
> person who uses Monotone under Windows...
Doesn't have to be shell. The automate interface can be used from any
language that lets you start and talk to other programs.
Tim
--
Free (experimental) public monotone hosting: http://mtn-host.prjek.net