An example of a visual diff program for Mercurial
Talin
talin at acm.org
Sat Nov 4 13:28:52 CST 2006
Josef Jeff Sipek wrote:
> On Fri, Nov 03, 2006 at 06:57:48PM -0800, Talin wrote:
>> Josef Jeff Sipek wrote:
>>
>>> Please finish it. :)
>> Like I say, I'd rather not do much more until there is some kind of
>> stable 3rd-party API for Mercurial, and unfortunately that's something
>> that *I* can't work on... :(
>
> If you finish it with current API, and convince Matt to put it into contrib
> or similar, people will fix it up for you ;)
>
> Jeff.
The problem is that the way that I am calling the Mercurial functions
now is a complete hack, arrived at mainly by guesswork -- I'm not
calling the top-level classes, because I don't know how to make them do
what I want - instead, I'm calling low-level subroutines directly. I'm
bypassing a whole lot of Mercurial setup code, for example, because I
have no idea how to make it work. I wasn't able to find any
documentation for calling Mercurial functions, other than the source
code comments.
Part of my reason for posting this thing, and the source code, was so
that the folks who are developing the API could look at my code and see
what kinds of functions a typical developer might need (all the calls to
hg are concentrated in the last page of the file, so that should be
easy.) And given that, perhaps the Mercurial folks could provide some
sort of documented, externally accessible functions that I could call,
instead of me poking around randomly in the hg module.
It really "feels" to me like the code that I've written to talk to hg is
completely wrong, and I have no idea how to make it right.
-- Talin
More information about the Mercurial
mailing list