Mercurial on IronPython?

Tim Groeneveld tim at
Sat Mar 22 16:57:25 CDT 2008

On Sunday 23 March 2008 5:48:07 am Chuck.Kirschman at wrote:
> I've done a couple ports of smaller internal projects from C python to
> IronPython.  Any win32 calls need to be ported to .NET, some libraries
> don't exist, and process doesn't work the same way so that may be an issue.
>  There are also some bugs in IPy that we encountered, though most of those
> were fixed once we reported them.  But the big problem is startup speed.
>  Hg is started often, and you want the results quickly.  You'll be adding
> 10-30 seconds to every invocation to get the whole VM up and run through
> byte codes.  Once it's all running performance seems to be roughly
> equivalent, so it wasn't a problem for our long-running processes.

Well, I have done absolutely no work with IronPython, I have not even touched 
it to be honest with you. What I will say, however, is that applications 
written in C# and compiled with mcs - the C# compiler in Mono start up within 
7-10 seconds on my machine, and this is even after rebooting the machine - so 
I can't say that it is cache making it that fast.

It's obvious that any win32 calls need to be ported to .NET. One thing that I 
was optimistic about now, and after I have done some research am much less 
optimistic about is the fact that Mercurial ported to IronPython will run on 
Linux - from what Google shows me, IronPython on Linux, especially IronPython 
any version other than 1, is very unlikely.

On Sunday 23 March 2008 7:22:22 am Paul Franz wrote:
> Could an interactive shell be added to Hg? Something along the lines of
> ClearCase's cleartool command. When you invocate cleartool without
> parameters it becomes a shell that you can invoke individual ClearCase
> commands in addition to some rudimentary shell commands like "cd" and such.

I personally can see no reason why not. After Mercurial has been ported to 
IronPython, you can use IronPython's API's in for example C# to write 
applications - such as for example graphical utilities. See

I am very excited about this prospect!
  - Tim G
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part.
Url : 

More information about the Mercurial mailing list