News for hackers. Stuff that matters.
Re:Why SQLite does not use Git (2018) by 37ef_ced3 on Friday November 05, 2021 @08:19PM (#29126153)
What I still can't believe is that the world chose git over hg.

Why would you use git if you could use Mercurial instead?

Re:Why SQLite does not use Git (2018) by krallja on Friday November 05, 2021 @08:27PM (#29126219)
Basically, GitHub.

GitHub would have won even if it were MercurialHub. It had a better user model of the problem to be solved than any other SaaS code forge, and it supported both open-source bazaar-style development and private enterprise. The gamification and social network features are KILLER.

Also, the Mercurial developers never had the built-in fan base of Linus Torvalds. Anyone who wanted to work on Linux had to use Git, so that was another major reason to learn (and stick with) Git.

Re:Why SQLite does not use Git (2018) by tapan_jk on Saturday November 06, 2021 @01:07AM (#29127679)
> Basically, GitHub.

This. Which basically means: no time to setup, no operations overhead, no administration required. This means, no dedicated team member needed who is the "admin" for version control, no dedicated infra required, etc. In the early 2000s when we were a team of 8 developers, one was a "ClearCase admin". He was a single point of contact for all things ClearCase (request him to create a new branch, add a new user, create a label, create a new repository and so on). He also had to ensure regular backups were done, the server was regularly patched, the disk had enough space. GitHub/Gitlab simply remove all of this just for a few dollars per user.

Re:Why SQLite does not use Git (2018) by stickfigure on Saturday November 06, 2021 @04:05AM (#29128304)
While I can identify with the ClearCase/Perforce/etc admin issue, there were a multitude of code hosting solutions that predate GitHub. Google code supported subversion and mercurial; Before that, tigris.org supported subversion; before that, Sourceforge supported CVS.
Re:Why SQLite does not use Git (2018) by dahart on Saturday November 06, 2021 @01:54AM (#29127862)
I watched git take over in several companies before anyone had ever heard of GitHub. One reason for Git’s success in my mind is that the actual competition in practice was Perforce, not Mercurial, and Perforce’s workflow and scripting UX and design are stuck in 1997… still! ;)
Re:Why SQLite does not use Git (2018) by adamrezich on Friday November 05, 2021 @11:09PM (#29127162)
imagine "SubversionHub" instead...
Re:Why SQLite does not use Git (2018) by xxpor on Saturday November 06, 2021 @02:04AM (#29127896)
that's sourceforge :)
Re:Why SQLite does not use Git (2018) by whynotmaybe on Friday November 05, 2021 @11:31PM (#29127273)
SourceSafeHub...
Re:Why SQLite does not use Git (2018) by mhitza on Friday November 05, 2021 @09:12PM (#29126547)
It's been ages at this point since I used Mercurial (around 2010) and probably these things changed along the way.

- But with mercurial branching where more like forks with different directories. Made me avoid that feature in web development work (that way I didn't have to fiddle with my webserver config every time I would have liked to create a branch)

- I recall having to deal with a bunch of gotchas around mercurial bookmarks (tags), like not being able to delete them, problems with sharing them with others, and things like that.

I was actively exploring different DVCS around that time, coming from a SVN background where I remember spending a lot of time fixing merge conflicts like a sucker. The one I liked, for its theoretical aspects, was darcs (as I was also leaning heavily in the Haskell ecosystem of the time).

Anyway, in short for me git overtook mercurial because it was easy for me to hop around multiple branches, pick off individual commits, and rebase commits (I was still pedantic about how I formatted my commits before a PR, nowadays, not so much).

Re:Why SQLite does not use Git (2018) by andrewshadura on Saturday November 06, 2021 @06:05PM (#29134239)
> But with mercurial branching where more like forks with different directories.

That's bzr, not Mercurial. Mercurial has always had more advanced branches than Git.

Re:Why SQLite does not use Git (2018) by mhitza on Saturday November 06, 2021 @06:27PM (#29134414)
It's been more than 10 years since I've used mercurial, so I had to try and dig up old documentation (hard to do with my Google-Fu), anyway I've found an older HN post that discuses the separate directory thing back in 2009 https://news.ycombinator.com/item?id=1013320

I'm sure a lot has changed in that timespan, and maybe it was a bit more of a nuanced situation wrt branching, but the pain points are the things I can only vaguely recall at this point.

Re:Why SQLite does not use Git (2018) by andrewshadura on Monday November 08, 2021 @07:35AM (#29148657)
That post may have been discussing it, but it was not based on the reality. Having multiple clones is just one of the workflows, one Git users also frequently employ. If anything, Mercurial’s branching model has always been richer than that of Git, since even when if didn’t have Git-style branches (bookmarks), it supported named branches and anonymous branches, which already allowed for a wider variety of workflows than Git ever did.
Re:Why SQLite does not use Git (2018) by lifefeed on Friday November 05, 2021 @11:26PM (#29127245)
Git made it easier to fix problems when I screwed up my repo. Mercurial was great when everything was working correctly, but for a long time it lacked the tools (or required third party tools) to fix problems I ran into.

Mercurial did have one killer feature, and that was hginit.com. Git's documentation was terrible for a long time. I would send programmers used to old fashion version control to hginit all the time, even when I was teaching Git.

Re:Why SQLite does not use Git (2018) by pacetherace on Friday November 05, 2021 @08:34PM (#29126277)
Because Linus created it and Linux community adopted it.
Re:Why SQLite does not use Git (2018) by unmole on Friday November 05, 2021 @11:12PM (#29127178)
> Why would you use git if you could use Mercurial instead?

Because Mercurial was (Still is?) hopelessly slow on large repositories.

Re:Why SQLite does not use Git (2018) by ezst on Sunday November 07, 2021 @03:46PM (#29143362)
not true, for instance, git being slower than hg for things like large monorepos is why google and facebook invested so much in hg (while microsoft has been pretty busy reinventing large parts of hg in git, as git-vfs for instance).
Re:Why SQLite does not use Git (2018) by notacoward on Friday November 05, 2021 @08:49PM (#29126372)
...or bzr, or monotone, or other contemporaries implementing extremely similar models. Git won because of its author's fame in an entirely different domain; both its use for the Linux kernel and the existence of GitHub are secondary to that.
Re:Why SQLite does not use Git (2018) by mbfg on Friday November 05, 2021 @09:26PM (#29126654)
branching is just better in git. sorry. I like Hg, we used it for like 4 years, but switched to git, and have been using it for 10 years now, never looked back.
Re:Why SQLite does not use Git (2018) by arantius on Monday November 08, 2021 @10:33AM (#29150299)
For me: `git gui` and the stage. Incrementally building my commits line-by-line (often with other working directory changes I don't want) feels invaluable. Work forced me to go git->hg and it frustrates me every day.
Re:Why SQLite does not use Git (2018) by TeeMassive on Saturday November 06, 2021 @10:54PM (#29136119)
- Speed

- The fact that it was Linus developing it

- The fact that it was released just after Git

- It's pretty much like Git and evolved to be usable like Git

- Git had way more advanced tooling and still does to this day

Re:Why SQLite does not use Git (2018) by bombcar on Saturday November 06, 2021 @02:10AM (#29127922)
I’m going to solidly blame Mercurial for having hg as a command - I couldn’t figure out why mer tab didn’t find anything and moved on.