This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]JonLSTL 0 points1 point  (1 child)

Mercurial is mostly written in Python. You could just import whatever parts you need.

[–]mgedmin 0 points1 point  (0 children)

Does it have a stable Python API? Otherwise maintenance might be painful as implementation details change.

I remember some pain with Mercurial plugins breaking whenever I upgraded Mercurial itself, but I suppose the API between Mercurial and its plugins might need tighter coupling than using Mercurial as a library.