From: Thomas Moschny Date: Thu, 04 Sep 2008 10:50:09 GMT Subject: Re: [Monotone-devel] Re: [RFC] mtn to git conversion script Message-ID: <200809041250.17715.thomas.moschny@gmx.de> In-Reply-To: <94a0d4530809040243k49635fd3kfef1ee22a6865e98@mail.gmail.com> On Thu, Sep 4, 2008, Felipe Contreras wrote: > Ok, now the basics seem to be working. So I'm uploading some code if > anyone wants to take a look. > > The C code is generating a topologically sorted list of revisions, and > storing the relevant information (certs and parents) separately. This > code is very fast. It's using GLib and sqlite3, so probably the GLib > stuff should be converted to use libgit. > http://gist.github.com/8742 You shouldn't access Monotone's sqlite database directly, for various reasons. Use the Automation Interface instead, see http://www.monotone.ca/docs/Automation.html#Automation. Using 'mtn automate stdio', you can feed an arbitrary amount of commands to one single running mtn process. - Thomas