6 ms·
hg could be 20% better than git. For the sake of the arugment, let's say it is. git's network effects mean hg needs to be 1000% better than git to replace it (
by nailer 11y ago
hg could be 20% better than git. For the sake of the arugment, let's say it is.
git's network effects mean hg needs to be 1000% better than git to replace it (much like git replaced svn, svn replaced cvs, and cvs replaced rcs).
- restalis 11y agoIf people would judge a tool on its technical merits, that may be true. However, a lot of people that adopted git hardly needed/used git's improvements (in their one man projects).
- umanwizard 11y agoThere are tons of companies using mercurial including some of the biggest ones. It's not really accurate to imply that Git won and Mercurial is dead.
- soperj 11y agoYes, For instance, Java.
- umanwizard 11y agoFacebook is another example :)
- amadvance 11y agoI consider the CPython switch from Mercurial to git the final declaration of victory. I still have to understand how CPython could miss the symbolic meaning of this decision.
- mixmastamyk 11y agoIt's probably more accurate to say they switched to github, but yes.
- marcinkuzminski 11y agoimho for CPython, the decision was more of the network effect that Github have rather than picking any particular tool or language. I Know Gitlab was also taken into account, and RhodeCode as well which supported Mercurial and itself is also written in Python. I think in there days for large OS projects it's more important to have more potentials contributors rather than sticking to only Python projects. Just my 2c.
- no__one 11y agoMore Guido and a couple of vocal people than CPython. I truly hope the switch wasn't the reason for Mackall to quit.
- durin42 11y agoNope. mpm has been wanting to move on for a while, it's only recently that he's published plans more publicly.
- ris 11y ago"I consider the CPython switch from Mercurial to git the final declaration of victory." Really I think it was bitbucket's total sidelining of hg in favour of git. hg features break regularly on bitbucket and today if you visit bitbucket's home page you're greeted with "Bitbucket is the Git solution for professional teams"
- rockdoe 11y agoI'm not sure. I have the impression some larger organizations that are moving or using monolithic repos are now aligning more strongly towards hg, because it's easier to extend and optimize than Git. If you look at the outside contributions that both projects get, this is pretty obvious. Hg is getting big changes from Facebook, Google, Mozilla, ... Maybe the answer to the argument that a paradigm change is needed to unsettle git is simply "monolithic repos".
- nailer 11y agoThere are tons of companies using Lotus Notes. git won.
- umanwizard 11y agoWhat does "won" mean, concretely? I mean, if 75% of people use git and 25% use mercurial, what does it matter? Also it's not true that a lot of forward-thinking, progressive, thought leader tech companies are using Lotus Notes. That is true of mercurial.
- knz 11y agoI think "won" means that when you are making an argument to introduce a piece of software into your workplace there is a technology that is more widely used. It doesn't necessarily mean that one is better, but there is usually a reason a technology is widely adopted. If you don't fully understand the advantages and disadvantages of similar products then widespread adoption can help with the decision.
- shadowmint 11y agoWinning and 'being dead' are two things that mean different things to different people. Git has at least an order of magnitude more people use it, and there is a significant and growing ecosystem around it that mercurial does not have. Mercurial is not going to 'die' until the developers abandon it; you can still use and install it. Hell, even cvs isn't 'dead', and the last stable release was in 2008. Mercurial will also continue to 'not be dead' for the foreseeable future, and people will use it for years to come. ...but it is already niche, and will increasingly become so. Only time will tell, but I'd be shocked if you don't see more big name migrations away from hg over the next year or two. People are important. When your project forces them to use tools that don't like or don't know, they go else where. The impetus to change gathers more slowly in companies; but when you see announcements like this, like google code, like atlassian marginalizing hg, like cpython... it's crazy to suggest that it doesn't affect the way people think about mercurial.
- ska 11y agoExcept unlike your examples, hg was contemporaneous with git. Git may have won the network effect benefit but 10 years ago it was not at all clear how it would shake out. Mercurial did gain enough users (and large users) to remain relevant, unlike some of the other options at the time.
- nailer 11y agoWell yes, that's the point! It would have never been the replacement for git because it's the same paradigm. rcs: revision control cvs: concurrent check outs svn: atomic versioning (edit: originally said renames that don't suck - thanks Danny for correcting this) git: decentralised version control To replace git, you need a new paradigm. I don't know what it is, and I think few people here would. Edit: to reiterate, none of this has anything to do with whether git or hg is technically better.
- jason_s 11y ago>To replace git, you need a new paradigm. I don't know what it is, and I think few people here would um.... how about a good command-line UI that doesn't require remembering all sorts of crazy command line switches?
- exDM69 11y agoMost would agree that Git's command line leaves a lot of room for improvement (although the manpages are quite good at explaining). But the internal concept is sound. I find it a bit odd that no-one has come up with a decent GUI or an improved command line tool for Git yet. There's plenty of attempts to supplement Git with extra commands but that's hardly an improvement. There are several implementations of the Git plumbing parts (e.g. libgit2), so making an UI on top of it wouldn't be that much work.
- kasey_junk 11y agoExcept its not the DCS paradigm that led to git's network effect. In fact, for the vast majority of users they are using it as a de-facto centralized system (on github). DCS was around before git and did not sweep the tech industry. Just like concurrent check outs weren't the reason cvs took off.
- rjbwork 11y agoTBH, I prefer Hg regardless. I only use git when forced to to interact with a project on GitHub. As for replacement, I don't think anyone wants that. Two widely used open source DVCSes is a great thing.
- ufo 11y agoHave you ever tried out hg-git? It lets you interact with github repos using mercurial.
- lucaspottersky 11y agoi've never tried. but i usually refrain from putting more technology than needed to reach my end goals. less is more, in this case. :P
- ufo 11y agoOn the other hand, I find git's command line interface very confusing so less trips to the man pages is also more :P
- kevin_thibedeau 11y agoI've tried it during the transition from Google Code. It works well enough but it didn't handle orphaned branches (as used by Github pages) well and I had to provide credentials twice for every push for some reason.
- rjbwork 11y agoI have. TBH it was more trouble than it was worth, and I had some trouble with the initial setup. It was a couple years ago now though, so it's possibly gotten better.
- IshKebab 11y agoYeah by "git's network effects" you mean github. If github had decided to be hghub instead, hg would probably have won.
- reycharles 11y agoIt seems github and bitbucket were released in the same year.
- wyldfire 11y agoYes, it's likely that github had more (or better connected) users at first and then Metcalfe's Law took over.
- bsder 11y agogithub catered to some of the big open-source names early. Of course, now that they've "won". They're basically letting the open-source stuff rot. See the recent complaint by quite a few projects about github and lack of support. This is the problem with anointing a "winner". Now we'll have to wait for github's replacement just like we had to wait for SourceForge's replacement.
- gnuvince 11y agoOr if Github had added Mercurial support at the same time Bitbucket added Git support (circa 2011?), I do believe that the playing field would be a lot more even today than it actually is.
- alblue 11y agoMercurial's storage format was broken from birth; it dealt with the concepts of individual files and history on them. Git's storage format was much more basic but more flexible, with the result that it was possible to implement the Git storage engine in different languages (cgit, jgit, libgit) as well as a minimal transfer protocol. http://alblue.bandlem.com/2011/03/mercurial-and-git-technical-comparison.html http://alblue.bandlem.com/2011/03/mercurial-and-git-technica...
- otabdeveloper 11y agohg came before git, you have your network effect backwards. The reason git ended up overtaking mercurial is because git is more flexible. Programmers for closed-source enterprise projects worldwide flocked to git because git can be massaged into any existing development process almost painlessly. Mercurial, in contrast, is "opinionated". (Before you mention github -- the timeline here is also backwards, github became the de-facto standard riding on the coattails of git's success.)
- ngoldbaum 11y agoI'm curious what makes you say that. From my point of view the exact opposite is true. Mercurial allows many different workflows (bookmarks, anonymous heads, named branches, topics), but with git you're pretty much stuck with the "standard feature branching" workflow.
- otabdeveloper 11y ago>I'm curious what makes you say that. The experience of migrating to DVCS's. (Anecdotal, I know, but still...) >...but with git you're pretty much stuck with the "standard feature branching" workflow. Git is a loose collection of file manipulation utilities, it can be cobbled together to support even the most insane workflows.
- exDM69 11y ago> Mercurial allows many different workflows (bookmarks, anonymous heads, named branches, topics), but with git you're pretty much stuck with the "standard feature branching" workflow. Mercurial is internally more complex than Git, as shown by the concepts you mention (bookmarks, named branches, etc) and all the various extensions. By contrast, Git is just a malleable graph of patches and tools to manipulate it. This is very well explained in the first commit(!) of git, which explains the concepts and the internal database layout. In Git, there might be a "default workflow" that the tools are geared towards but you can use rebase and cherry-pick and all the other tools to enable just about any workflow you can imagine. Of course, this allows you to turn it into a big mess and there are some weak spots (like tracking a lot of bugfix commits backported to several release branches) but the concept is simple and sound.
- ufo 11y agohg-git[1] lets hg interoperate with git repositories, which helps a bit with the network effect problem. I'm currently using hg-git for my projects and I am loving it because I much prefer the hg UI (both the command line and tortoiseHg) to git's UI. [1] https://bitbucket.org/durin42/hg-git https://bitbucket.org/durin42/hg-git
- david-given 11y agoI use this constantly --- I've been migrating all my projects to github. hg-git Just Works (almost; there are a few places where the git model doesn't match up with the hg model). If you like hg, but want to exploit git's network effects, I strongly suggest checking it out.