What is better than .NET implementation, Mercurial or git?

I need to access some DVCS from my .NET code and because I am familiar with Mercurial and Git, which of these two has the best .NET client library? And I do not mean only the shell, I mean the complete .NET implementation, which does not require any command line calls in the background.

Note. If the answer was Bazaar or some other DVCS that I am not familiar with, this is normal, the actual DVCS is not that important.

Edit: I am looking for answers from people who have really tried some .NET clients and can evaluate their quality.

+7
source share
5 answers

I can not speak for Git, but Mercurial does not have an API in any language - everything must be done through the command line.

+3
source

NGit is not a wrapper. https://github.com/slluis/ngit

It is based on JGit and creates a lightweight access library for the .NET world.

He controls, for example. monodevelop integration of version control and can do everything you can do with command line tools except "Look ma, no external binaries"

+2
source

Both have native .NET support:

The choice is yours.

+1
source

There is no "native" implementation of Mercurial (and probably never will). An hglib project that uses cmdserver Mercurial mode (part of the GSoC project) is best .

+1
source

To summarize what was collected in the answers: it looks like Mercurial does not and probably will not have a .NET port in the near future, but for Git, at least these two ports seem to be useful:

0
source

All Articles