Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Timothy Brownawell
On Mon, 2006-08-14 at 01:00 -0400, Daniel Dickinson wrote: The following diff adds a new command for use in lua hooks. The command is called execute_redirout. I chose the name based on spawn_redir and execute. Ok... Also, I couldn't figure out how to get mtn diff to not include the .po

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Nathaniel Smith
On Mon, Aug 14, 2006 at 01:00:18AM -0400, Daniel Dickinson wrote: The following diff adds a new command for use in lua hooks. The command is called execute_redirout. I chose the name based on spawn_redir and execute. execute_redirout executes an os command and captures standard output and

Re: [Monotone-devel] performance of mtn diff

2006-08-14 Thread Johan Bolmsjo
On Sat, Aug 12, 2006 at 01:09:15AM +0200, Johan Bolmsjö wrote: On Friday 11 August 2006 22:35, Nathaniel Smith wrote: On Fri, Aug 11, 2006 at 01:29:33PM +0200, Johan Bolmsjo wrote: mingw 0.26 == [...] real0m39.515s user0m0.046s sys 0m0.046s

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Alex Queiroz
Hallo, On 8/14/06, Daniel Dickinson [EMAIL PROTECTED] wrote: - --- luaext_platform.ccd6b2a9e14b19d3fe6bc6105f3574048a333b118b +++ luaext_platform.cc 186f18019b766de62254ea6e1a53dd82c08ac00b @@ -1,7 +1,8 @@ #include lua.hh

[Monotone-devel] Re: Scalability question

2006-08-14 Thread Steven E. Harris
Nathaniel Smith [EMAIL PROTECTED] writes: The merkle trie synchronization algorithm is a set synchronization algorithm -- given a set of items here and a set of items there, each with a unique id, it lets each side figure out what it needs to send so that the other side will end up with

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Daniel Dickinson
On Mon, Aug 14, 2006 at 01:09:18AM -0500, Timothy Brownawell wrote: On Mon, 2006-08-14 at 01:00 -0400, Daniel Dickinson wrote: mtn revert po. I hear the translators don't like people committing changes to these files anyway, so you will want to do that eventually. po/ seems to only get

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Bruce Stephens
Daniel Dickinson [EMAIL PROTECTED] writes: [...] Oh, I need it to be able to use stat to get unix permissions and user and group on a file, as well as using readlink to get the target of symlinks. I'm using monotone attributes to track these. It's not strictly necessary since you can work

Re: [Monotone-devel] [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Timothy Brownawell
On Mon, 2006-08-14 at 15:39 -0400, Daniel Dickinson wrote: Erm, but I think mkstemp returns a file handle and spawn_redirected takes a filename which it opens (and truncates) or creates, so you can't simply feed the output of lua's mkstemp() into spawn_redirected unless lua file handles are

[Monotone-devel] Re: [Bug 1311] monotone is broken on Ubuntu

2006-08-14 Thread Brian C. Lane
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 [EMAIL PROTECTED] wrote: http://bugs.openembedded.org/show_bug.cgi?id=1311 --- Comment #2 from [EMAIL PROTECTED] 2006-08-14 02:14 --- That's seriously odd. Have you tried the binary at

Re: [Monotone-devel] Re: [PATCH] New lua command execute_redirout which executes an os command and captures standard output

2006-08-14 Thread Timothy Brownawell
On Mon, 2006-08-14 at 16:19 -0700, Graydon Hoare wrote: Bruce Stephens wrote: Well, an obvious alternative would be to provide those two operations as lua functions. How portable is stat as a command? Yes, I'd much prefer writing stat() and readlink() lua functions. Both functions are