223 points · by l0b0 · 3y ago · 227 comments
The latter is ahead in network effects in a massive way - but I always preferred Mercurial. I'd have used it more but - network effects! - used git because of the projects I was working on.
The main thing was that the mental model of Mercurial fit in my head and the CLI was predictable and regular, whilst the tool still scaled to large codebases.
I find Git wants me to think about its implementation details and internal terminology at unpredictable moments during use. It still gets the job done but it feels like doing random CAPTCHAs in the midst of my work.
For Mercurial, that was shallow clones. I haven't looked at it in a while, but a quick googling shows me a wiki page where they discuss how an implementation could look like, and it hasn't been updated since 2015.
Network effects are certainly a reason git is popular. But also: If you want to challenge git, you should be able to compete with its basic features.
My workflow in Git centers on the index, and making lots of commits on local branches that will never get pushed. I spend a day working, rewrite history, stash a bunch of unrelated changes on temporary branches, and then send a couple commits on the main branch for code review.
When I used Mercurial for work, it felt surreal to have all of those weird little workflows get locked away behind plugins. I get how Mercurial is way easier for people starting out, and I also get that I could just use the plugins, but when I use Git, all those history-rewriting tools are right there where I want them.
But it's definitely missing git's rebase :)
This is what we're seeing here, IMHO.
*: There's nothing "objectively something" in computer science, because it's all is a pile trade-offs to get the desired result.
Mercurial vs. Git is IMHO a textbook example of "good enough with large user base" beats "subtly superior with smaller user base" over the long term.
I've recently wrote a post about it - how we're kinda locked with git and how other solutions have it hard to get adoption.
git was good, but github cemented git's position. So unless GitHub allows other solutions, then we're kinda locked.
>So what's the issue here? I'm worried that just because GitHub is so good, then unless they decouple from git as letters management engine and allow any/other, then we will be locked with git.
I just use Mercurial with the git extension. Works fine.
I expect google to switch to that.
I am very happy when something like this happens. It means performance matters and a performant implementation is rewarded with market share.
This performance is what made git win, even if the “porcelain”, the CLI commands we use, are not as well-designed as the ones in Mercurial.
Hopefully one day we will no longer use any chat client written in Electron. =)
by this you mean technical group think or monoculture?
Mercuiral booksmarks are strange to me and dont fit my mental model. Its like finding a bookmark for an article in my bookmark manger that I stored in some folder. So Random
For me I'd say it's that git doesn't fit my mental model and Mercurial does - it's that mercurial gave me a smaller mental model that (at least back when I used it heavily) allowed me to do what I needed.
Even as a fairly experienced and advanced Git user, Git requires me to keep more state in the head and at, from my point of view, unpredictable times needs me to extend the model. The strange thing is that this is despite having a very simple model at the lowest levels of the system.
- We will continue to use Bugzilla, moz-phab, Phabricator, and Lando
- Although we'll be hosting the repository on GitHub, our contribution workflow will remain unchanged and we will not be accepting Pull Requests at this time
- We're still working through the planning stages, but we're expecting at least six months before the migration begins
I understand that this could make sense as a first step, but I guess they could profit if they would go all-in with GitHub and use the tools it offers. Phabricator (https://www.phacility.com/phabricator/) is even deprecated! And who likes to file bugs in Bugzilla?As sad as it is, I see Firefox losing ground even on the developer side.
Gitea, Gitlab and Sourcehut are in my opinion very decent alternatives to Github providing the same functionality (if not more) without any ethical downsides.
I moved completely to Sourcehut, and I'm not coming back.
The reliance on email though is a hill I'll die on. In the 90s when spam was less of an issue that would've been great. Now? I don't want to be forced into dealing with fucking email to manage issues. So yeah for my projects (which are quite small) I think SourceHut is a great fit. For a large project like rust or firefox? Not so much.
Going GitHub is just so orthogonal to a mission of "openness".
Github makes money without producing open source software. <rant>Well, that is if you don't count a sluggish electron-based text editor.</rant> Github is not open source, Github Pages is not open source, Github Actions is not open source. Sure, they offer free hosting for open source projects, but that kind of charity creates a hard dependency on Github for many projects, which is not healthy for the ecosystem.
What happens if Github closes? Or stops free offers for open source projects? To make an analogy from another ecosystem, if Mac Donalds started offering free meals to homeless people, that would not solve the problems of poverty and would not contribute to healthier food for the people or a more sane/ecological agriculture. That'd just be charity for their own gain.
My understanding (possibly flawed) is that github started by using the current git tooling but that they soon started running into issues because the CLI tools were never meant to scale and never as a web application.
So they wrote their own implementation of git (their own tool that understands git repositories) but did so in a way that's more compatible with the scale and the web-oriented work they do.
So it's not even clear to me how much of the actual code they have running is open source.
It is bad enough that Firefox depends on Google money for survival, I don't see why they should give even more of their freedom away to rely on Microsoft.
The kind of low-effort contributions that you would get from people that will only contribute because you are on Github are not the ones that you need or want anyway.
Plus if they wanted a alternative, Gitlab is so much more pleasant to work with anyway.
If someone had told my 80s/90s Libre/OSS advocate rebel mind how things would pan out, I'd laughed.
Even the most ardent woke/eco/[insert flavor]ists" need daddy to pay their rent, vacation and iPhone bills.
We ended up switching to Gitlab because Github-style code reviews are just so much easier to deal with. They hit the spot between "good enough" and "easy to use". Phabricator's bloat made it unbearable
Don't understand moving to Gitlab because of the bloat though. There are lots of lighter weight tools, but Gitlab is the whole kitchen sink and then some. The integrated-ness is part of the package with these tools.
Not only has it been years since I last have heard of bugzilla, I also really resented it! Moving to a modern infrastructure really improves accessibility for developers. For example, GHC (Haskell Compiler) moved to gitlab a few years ago and while previously it was really hard for me to understand the development process nowdays I can follow pull requests and tickets of features I am interested in without any problem. Previously the system was really complicated and, if I remember correctly, Phabricator, mailing list etc. based. Off putting as a newcomer.
Also consider that Mozilla’s bugzilla contains quarter of a century worth of tickets. There’s no way it can be moved to GitHub (or wherever) without loss of data.
I understand why Mozilla can't/won't go that route, but seeing organizations attempt to duct-tape solution together with Bugzilla, Phabricator, Jenkins and whatnot makes you appreciate what Atlassian has done with Jira, Bamboo and Bitbucket (even if Bamboo and Bitbucket aren't exactly industry leading). I suppose that Phabricator was intended to be a Jira/Bitbucket/Gerrit alternative of sorts, but just failed to get the required traction to survive.
It's not just open source projects, way to many companies are attempting to knit something together and they end up with this unholy mess of systems that sort of communicate, but not really. The saving grace is actually Git, because everything works with Git.
Git was suposed to be a decentralized, peer-to-peer way of managing software using standard open-source tools, and Github is the exact opposite.
On the other hand, they're moving from open source tool to a closed ecosystem and depends on microsoft. Very sad.
1: I don't have any hard data for this, but I don't think it's overly controversial.
Although I suppose you could argue the cause is the choice of keeping so much in a single repo (I certainly would).
it almost feels like there should be some intermediate target language - like the syntax server that syntax highlighters target (forget the name)
not aure how but it feels doable
It's not vague, I immediately know what the article is talking about. I can accurately judge whether I am interested in further reading just from a passing glance.
This is how headlines should be written.
Choosing git not only means they need to do a lot of work migrating from mercurial to git, but git is arguably a worse SCM than mercurial, or at the very least not an order of magnitude better to justify a switch.
Personally, I chose Mercurial to start with, because I liked the Windows tooling available and it felt a lot more like Subversion, which is what I used previously.
However, Git won the mindshare war in the end, so I moved over to that.
Ahhhh, thanks for brining back those memories.
You're not thinking about BitBucket are you? I thought Github was always git only?
That was over a decade ago, however; I'm actually pretty surprised it took Mozilla so long to switch.
I'm a happy git user but I'm really curious about losing good ideas from other tools due to mindshare.
However the killer feature of Git is the ecosystem. I was always having to do lots of custom work to get Mercurial to work with CI providers, whereas Git just worked and had first class support. It was clear after a while that our team would always be outsiders if we continued down that path, and there wasn't enough of a compelling reason to stay with Mercurial.
hg has (had?) a sane CLI that blows (blew?) git out of the water.
I like the power of git, but it either needs external tooling to prevent people from shooting the team in the foot, or relatively thorough study by everyone using it.
In practice, for git, most of the time you need some software to protect people from messing up repositories and history (gitlab, github, etc, which honestly you're gonna use anyway), while hg on its own protects you out of the box from most mistakes.
All FAANGs I'm familiar with use git, but there are some serious handrails and straps on what you can do. On smaller companies I had so many arguments about rebasing public branches that it's not even funny.
For a while I had in the back of my head to create a hg clone that was a wrapper around git, in a way that it'd allow hg-style workflows and protections, while having a faster and more well-known "backend".
If git was an equivalent modern appliance, it would be against the Geneva convention.
I give Git this, it's a bit faster.
Edit: I work for Mozilla, although I didn't in 2006 when I think the decision was made.
But Rails was a very early Github user, and the big Rails usage upswing coincided with that and helped drive it. I was a Python and PHP dev at the time, and that other stuff mostly predated Github and was scattered across all kinds of places. Whereas Rails and Github both kicked off about the same time, and practically no Rails devs or libraries used anything else.
It was that fast growth and hype combined with the network effects of Github that drove git usage rather than what Linux used. The Linux contribution workflow was also pretty alien to Github focused webdevs.
That's how Sourceforge rose to become so dominant it appeared unstoppable, and how Docker became immensely popular so quickly.
Bitbucket also had free Mercurial hosting in 2009. I think it was 1 private repo in the free plan and it was later expanded to unlimited free repos with max 5 users around 2011.
So Linux was always going to be git; and I think things flowed from there.
There wasn't a similar offering for Mercurial, in part I think because of the fundamentally different way Git and Mercurial treated (treats?) branches. In Mercurial branches were permanent, so a PR-like flow would leave a lot of stale branches around.
Mercurial also didn't support rewriting history as a core philosophical choice.
It was introduced via a plugin but that meant each dev had to enable it to use it. AFAIK it has been moved into the core, but I think too late.
At least as a primarily Mercurial user at the time, I feel Git didn't really outcompete Mercurial until Github and PRs came along. It just allowed for much smoother cooperation.
But those are big company problems and I suspect the caveats, tradeoffs and solutions matter a lot less for the 99 % of other VCS users.
But Git definitely won the war, and Mercurial has been disappearing little by little.
Might not have much to do with git vs Mercurial technical merits.
Still, with Linux behind it, Git won the DVCS wars. Mercurial became an also-ran and now almost nobody uses it.
Too bad.
We'll need something new and innovative to come out and rid us of constant blogs explaining how Git works because it's too hard to understand how to make it do the things you want it to do.
I've been using Git for about 7 years now (5 exclusively) and I know how to use it, but I still have to look things up occasionally because its UI is trash and non-obvious. I didn't have that problem with Mercurial. There, I knew the verb and the built-in help was sufficient to get me where I wanted to go.
Worse is better wins again.
Just try to clone Mercurial repo (Firefox) and roll back in history to specific commit. Let me tell you beforehand - it is (at least used to be) impossible. What you could do is to "clone it again" up to specified point. You have to do it somewhere else on a filesystem just to needlessly spoil disk space and you end up having the same sources at least twice. When I asked why I got handwaving arguments about code history being sacred, which is of course nonsense. If it was so... in Git I'd make another branch and rewind to commit I care about without wasting another 25gigs of disk. How can be this achieved in mercurial these days (without waste)? Back in days I wanted to do some work specifically on Firefox, and those steps were the only I could come up with after a lot of searching and asking questions, and because of Mercurial I gave up, to me it felt like it was a high entry barrier on purpose.
So, no my friend, a lot better wins time.
Ten years ago, when I had started to use git after having used both Subversion and Mercurial, I noticed one thing.
Git was FAST.
On repositories of the same size, git was blowing Mercurial out of the water and running circles around it, that's how fast it was.
It was FAST and it fucking got out of my way and let me work.
I don't know the inner workings of either and academic advantages of Mercurial, but I know for a fact it had been a dog and its move to Python 3 had been disastrous. So whichever technical or UX advantages Mercurial might have, I simply don't care anymore.
Read about Jujutsu awhile back.
I am quite surprised that no open source variant has been created yet (that I'm aware of).
But not for the reasons that correlate, such as education, tooling.
https://soberbuildengineer.com/blog/2007/04/version-control-...
https://soberbuildengineer.com/blog/2006/11/version-control-...
Unfortunately, GitHub got VC funding and caused network effects to kick in.
Git came along with GitHub as a parasite much like C came along as a parasite with Unix.
It's more complex comparing with git naked graph. Contains more domain entities. But it could be more convenient for starters and SVN users.
Also looks like they're still planning on using existing review tools:
> We will continue to use Bugzilla, moz-phab, Phabricator, and Lando... Although we'll be hosting the repository on GitHub, our contribution workflow will remain unchanged and we will not be accepting Pull Requests at this time
Hosting it elsewhere means people are less likely to find it in the first place.
Using a different VCS means people are less likely to pick it up. Instead of starting on their contribution they have to install and learn new tooling that is irrelevant to the project itself.
Emacs is a pretty good example of this. There are plenty of people who would be interested in making improvements to the project but a much smaller proportion are willing to engage with the email-based process that's required to do so.
The crux of the issue is that the social element of an approach is just as important as the technical merit. A technically superior solution will quickly languish if no one can bear to work on it.
But Firefox is a well-known software and, at the same time, a very complex one. I don't think that somebody who struggles figuring out how to contribute via, e.g., Gitlab, will be able to contribute anything useful to the project.
> For a long time Firefox Desktop development has supported both Mercurial and Git users. This dual SCM requirement places a significant burden on teams which are already stretched thin in parts. We have made the decision to move Firefox development to Git.
You're implying that Microsoft would find some reason to shut the project page down. First, I don't think they would.
Second firefox is entirely open source, so worrying about trade secrets is no concern. Next, code is in git, so the project could be spun up elsewhere, even if import and export of issues and the association of user accounts would be a one-time hurdle.
That Microsoft will disable the repo and prevent updates?
Or that they’ll read the open source code published to the repo?
This is not what open source is supposed to mean.
Just saying that an insignificant reduction of the C-suite's cushy bonuses and perks could very likely enable hiring quite a few smart people to reduce the burden on teams.
If you try to bring the Foundation vs Corporation argument, I'll say outright that this division is pretty much an exercise in creative bookkeeping invented not in the least to circumvent tax agencies and enable the top people to harvest top money while it lasts, while the line workers are being stretched thin.