monotone-devel
[Top][All Lists]
Advanced

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

[Monotone-devel] automate log?


From: Stephen Leake
Subject: [Monotone-devel] automate log?
Date: Thu, 22 May 2008 05:37:39 -0400
User-agent: Gnus/5.1008 (Gnus v5.10.8) Emacs/22.1 (windows-nt)

I'm thinking of adding a new 'automate log' command.

It would have options for specifying what data to include in the
output, and output everything in basic_io.

The rationale for this is that the current Emacs DVC implementation of
"show log for this file" is incredibly slow.

Emacs DVC uses the existing automate functions to retrieve all the
information it needs for "show log for this file". That ends up being
a _lot_ of automate calls, and it scales with the size of the
database, since essentially every revision  must be examined to see if
it changes the file. Even using automate stdio, it is far too slow to
be useful.

By comparision, 'mtn log <file>' is blazingly fast. So clearly
figuring out what revisions to output is better done in C++ in a
single mtn function, rather than in Emacs Lisp with lots of mtn
automate calls.

Parsing the output of 'mtn log <file>' is an option, but parsing the
output of 'mtn automate log' would be much prefered.

Comments?

-- 
-- Stephe




reply via email to

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