4 ms·
Author here. FWIW, git-cinnabar is written in python because it uses the mercurial code to talk to mercurial servers, and the mercurial code is in python. Well
by glandium 10y ago
Author here. FWIW, git-cinnabar is written in python because it uses the mercurial code to talk to mercurial servers, and the mercurial code is in python.
Well, that was true when it was first released, but recent versions have gained "native" support to talk to mercurial servers (where a helper program written in C does the talking[1]), although the mercurial code is still used to read bundle2[2] data that comes from the mercurial server, even in that case (that is, only bundle1 is supported without using mercurial code).
I'm moving more and more things to the helper with the ultimate goal of not having any python code left.
1. https://glandium.org/blog/?p=3648 https://glandium.org/blog/?p=3648
2. https://www.mercurial-scm.org/wiki/BundleFormat2 https://www.mercurial-scm.org/wiki/BundleFormat2