Mercurial in pure Java

Andrey Somov py4fun at gmail.com
Sat Oct 3 14:49:28 CDT 2009


William Dode wrote:
> On 02-10-2009, Andrey Somov wrote:
> 
>> Python has heapq module which implements "the priority queue algorithm." 
>> Why to bother to implement it in Python ? Why not to take it from Java ?
>> It is simple:
>>
>> - download and install Java
>> - install library which implements the priority queue algorithm
>> - take care that the Java version matches the one required by the library
>> - write a small Java program for the interface
>> - launch Java from Python and execute the program
>> - parse the output taking care that another version of Java or the 
>> library may change it
>> - get the result and use in your Python program
>>
>> Is it the way to go ? (I hope you can see the symmetry with Python and 
>> Mercurial)
> 
> I use postgresql from python, and i never thought about porting it to 
> python. There is a pure python driver for this but i even don't use this 
> one.
> 

When you are satisfied with usage and performance - no problem.

If we have a way to talk to Mercurial through a socket...
(I an afraid this is the only way though.)

-
Andrey



More information about the Mercurial mailing list