Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: Is there something like libmonotone?: msg#00220

version-control.monotone.devel

Subject: Re: Is there something like libmonotone?

Andreas Känner wrote:

Maybe someone from the core development team can explain how much work it would be to build a libmonotone or a XML interface?

I'd really prefer not to make a libmonotone, for a few reasons:

- separate programs make it easier to debug. you can post to the
mailing list the exact input and output from monotone, and we can
add the case to a testsuite if it's a real bug.

- separate programs make it easier to make assumptions in monotone.
it has no provisions for multiple threads in it, for example, yet
it does things which might otherwise be considered unwelcome
(multiplexed network i/o, calling system() from lua to fire up a
merge client) with its calling thread.

- it makes it likely that one or other interface will be a second class
citizen (probably command line); I'd prefer to keep the command
line equally usable. emacs / vim / shell use of monotone will
invariably continue to need a powerful command line.

- it's GPL, so you can't link it into eclipse atm anyways. not sure
about xcode. maybe we could track down all the developers and
convince them to relicense, but it'd need to be for a compelling
reason.

- probably anyone wanting such a library would want it to be lowest
common denominator, which means C, so we'd have to rephrase a
certain amount of the entry points in monotone in terms of even
looser typing and weaker checking than we currently perform.

that said, we could go a ways towards making it more scripting-friendly. I'm aware that the command line is still a bit unfriendly. the way I see this problem, there are two sides to it:

- sometimes it's hard to parse the output from monotone.

- sometimes it's hard to formulate the input you want to feed to
monotone

the former problem I'd prefer to address by making all the output functions in monotone invoke a lua hook when it's present. this way you could redefine the output to look however you like, by providing an extra lua file as a command line argument. if you wanted it to look like xml, you could write hooks which dump out xml. none of my business.

the latter problem I'm not sure is a real problem. I'd like to hear if it is. it seems to me that *invoking* monotone via system() or execve() is just as easy as any sort of libmonotone would be, and that the majority of the problem people are perceiving is in parsing output. if that's not true, it'd be good to know.

-graydon


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation