I need to access some DVCS from my .NET code and because I'm familiar with Mercurial and Git, which one of that two has better .NET client library? And I don't mean just a wrapper, I mean a full .NET implementation not requiring any command line calls in the background.
Note: If the answer was Bazaar or some other DVCS that I'm not familiar with, it's OK, the actual DVCS is not that important.
Edit: I'm looking for answers from people that have actually tried some .NET clients and can judge their quality.
I can't speak for Git, but Mercurial has no API in any language - everything is intended to be done via the command line.
NGit is not a wrapper. https://github.com/slluis/ngit
It is based on JGit and makes a lightweight access library for .NET world.
It drives e.g. monodevelop source control integration and can do everything you can do with the commandline tools, except "Look ma, no external binaries"
Both have native .NET support:
The choice is yours.
There are no "native" implementation of Mercurial (and there will likely never be). Your best bet would be the hglib project, which uses the cmdserver mode of Mercurial (part of a GSoC project).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With