On 6/1/07, Charles Oliver Nutter <charles.nutter@...> wrote: > What would it take to get Mercurial running in Jython? It's been getting > a lot of press and migrators lately, and I'm sure client-side tooling > for it is a bit weak. If it could be made to run in Jython, that would > be a super-easy way to start building it into the usual Java-based IDEs. > > And I know a number of folks at Sun would be very interested in seeing > this happen too, since Sun is actively migrating all OSS projects to Hg. > > What's missing? I took a look at it yesterday (saw your query in the #jython logs). * It has two small C files that would need to be re-written in Java - that doesn't look like it would be too hard. * The gui UI is tcl-tk -- that would have to be re-written, although the commandline use hopefully won't be too hard to get and would be a good start. * It is min Python 2.3 so it is likely that the coming release will not be good enough, since it is largely based on 2.2 (though it has some 2.3 features). However, we have an alpha working with 2.3 level features already. * util.py and util_win32.py abstract away the platform -- we would likely need a util_java.py * There are missing libraries that we'd need to look at - for example "gettext". * Hard to say what else might be missing since the above problems prevent the rest from running -- but so far it looks like something that could be done... -Frank