News for hackers. Stuff that matters.
Re:What comes after Git by indy on Tuesday July 05, 2022 @03:21AM (#31985326)
I wonder how many centuries of developer time have been wasted trying to "unfuck what I did and go back to a branch"?
Re:What comes after Git by sophacles on Tuesday July 05, 2022 @09:25AM (#31987940)
Not as many as svn or cvs for sure. That's part of why it became popular. There was a job title "merge master" - literally there were people who's job was to handle merging in various feature branches. If you didn't have this person you risked days or even weeks of downtime because no one could use the central server without risk of making the situation worse. You would regularly open a file and find your work had been stomped on because one person added a small doc fix in their version of a file and merged it after your work went in, but the vcs didn't really merge, it just overwrote.

I'm not saying it can't be better - clearly it can.

Just pointing out that one person spending a little time unfucking a branch is massively superior to everyone not being able to work because that same person fucked up everyone's branches.

Re:What comes after Git by 8n4vidtmkvmk on Tuesday July 05, 2022 @04:08AM (#31985641)
hg up --clean

i dont know why mercurial doesn't get more love.

Re:What comes after Git by geenat on Tuesday July 05, 2022 @06:46AM (#31986607)
It was loved. I blame all the platforms dropping support for it.

Github really is git's best PR.

Re:What comes after Git by mbfg on Tuesday July 05, 2022 @11:42AM (#31989589)
mercurial was pretty nice, and if you have a "beginner developer team", mercurial is probably my recommendation. but how git does branching is just better in a way you just can't get past, once you use it. Luckily it's usually pretty simple to start with hg and move to git at a later date.
Re:What comes after Git by 8n4vidtmkvmk on Tuesday July 05, 2022 @07:58PM (#31995203)
Hg branching makes more sense to me. You can update to any changeset and then just start coding and it will naturally branch. If you want something more permanent you can create a named branch. If you can't find your unnamed branches you can bookmark or tag them.
Re:What comes after Git by javajosh on Tuesday July 05, 2022 @08:50AM (#31987579)
hg is indeed the better tool. Just as microkernels are the better kernel design. By existing and working (which is no small feat), Linux obliterates both alternatives in the zeitgeist. This is, of course, the great downside to "worse is better".
Re:What comes after Git by tempest_ on Tuesday July 05, 2022 @09:07AM (#31987751)
We used hg when I started at my current position.

From a developer stand point the experience was better but all the tooling and integrations are git based so we switched.

Re:What comes after Git by bvrmn on Tuesday July 05, 2022 @09:59AM (#31988261)
As I remember `hg up` requires network access. What if you break a repo offline?
Re:What comes after Git by capitainenemo on Tuesday July 05, 2022 @10:05AM (#31988319)
hg clean ?

Actually, wait. hg up doesn't require network access. Maybe you're thinking of hg pull -u or svn up

Re:What comes after Git by bvrmn on Tuesday July 05, 2022 @10:21AM (#31988492)
So you should also read the manual to know about. There no such thing as "intuitive" in VCS world. Looks like most of commentators confuse intuitiveness with familiarity.

Don't get me wrong I appreciate mercurial devs did a tremendous work to hide DVCS under SVN-like ("simple" hah) interface. But every non-standard thing requires manual reading.

Re:What comes after Git by bvrmn on Tuesday July 05, 2022 @10:23AM (#31988511)
> hg up doesn't require network access.

So it's like `git checkout` and doesn't cover all breakage cases.

Re:What comes after Git by capitainenemo on Tuesday July 05, 2022 @11:06AM (#31989103)
Not sure how to answer that, but sure, I can imagine plenty of ways in which a local repo could be screwed up that might require a strip or just a complete fresh pull. "All breakage cases" is pretty broad.

My personal reasons for liking mercurial is some pretty amazing tooling (hg absorb, hg fa --deleted, revsets/filesets) combined with a friendly commandline with fairly sensible defaults.

Re:What comes after Git by 8n4vidtmkvmk on Tuesday July 05, 2022 @07:56PM (#31995191)
Dunno what scenario it would fail on. You can also clone a local repo as long as you didn't mangle the .hg dir