Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which has better .NET implementation, Mercurial or git?

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.

like image 981
Borek Bernard Avatar asked Jul 03 '11 21:07

Borek Bernard


4 Answers

I can't speak for Git, but Mercurial has no API in any language - everything is intended to be done via the command line.

like image 86
Chris S Avatar answered Sep 27 '22 16:09

Chris S


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"

like image 40
sehe Avatar answered Sep 27 '22 18:09

sehe


Both have native .NET support:

  • Git - Git#
  • Mercurial - Mercurial.NET

The choice is yours.

like image 30
Darin Dimitrov Avatar answered Sep 27 '22 17:09

Darin Dimitrov


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).

like image 35
tonfa Avatar answered Sep 27 '22 17:09

tonfa