4 ms·
Matt has done a great job and I wish hg had taken off more than it did, though it would be disingenuous to suggest it hasn't been successful. I used hg before
by BuckRogers 11y ago
Matt has done a great job and I wish hg had taken off more than it did, though it would be disingenuous to suggest it hasn't been successful.
I used hg before moving to git and always preferred the clean, single language implementation vs the scripts and general hackish nature that git offered as an alternative.
As a result, it was a nice perk for a long time that hg worked much better than git on Windows.
- masklinn 11y agoAlso the revsets, while they're relatively recent in the grand scheme of things (hg 1.6 circa 2010) I so miss these when I have to use (or even read the man page of) the garbage fire that is `git log` (templates also help)
- ngoldbaum 11y agoI've actually converted a git repo to hg just to use revsets.
- roddds 11y agoWhat is it about these revsets that can't be achieved with a "git log --graph --decorate --all"?
- jordigh 11y agoThose would be accomplished with hg templates, not revsets. Revsets are kind of like gitrevisions(7), but much more powerful. Docs: https://selenic.com/hg/help/revsets https://selenic.com/hg/help/revsets A complete example, which appears to have some popularity in Mozilla: http://jordi.inversethought.com/blog/customising-mercurial-like-a-pro/ http://jordi.inversethought.com/blog/customising-mercurial-l... edit: Sorry, the --decorate part would be with template, the --all is kind of like a revset, and the --graph part is well, --graph.
- masklinn 11y ago> Those would be accomplished with hg templates Except for the --graph part which would be accomplished with --graph of course > Revsets are kind of like gitrevisions(7), but much more powerful. And easier to read and write too.
- deleted 11y ago[deleted]
- stonogo 11y agoUsage without a PhD in git-manpage-generator, primarily.
- profeta 11y agolove to have someone with a PhD in git show how to do the `hg wip` from jordigh above.
- deleted 11y ago[deleted]
- Myrmornis 11y agoHow much of the hg revset functionality could be implemented for git, without writing any C? Is the revset feature basically a DSL for specifying queries, and are the queries thus-specified ones that have direct analogs in git and can be done in git using git's API?
- masklinn 11y ago> Is the revset feature basically a DSL for specifying queries Yes, it's a way to select sets of revisions by filtering and merging existing sets. > and are the queries thus-specified ones that have direct analogs in git and can be done in git using git's API? I don't think so, not all of the filter operations are available, but more importantly I don't think git supports arbitrary sets of revisions, only fairly basic relatively continuous ranges (that's the idea I get from gitrevisions(7) anyway)
- warbiscuit 11y agoI'm worried I might have to move off of hg eventually. But just can't get over all those points .. and also TortoiseHg, for which there doesn't seem to be even remotely as good an equivalent in the git ecosystem. It's kind of frustrating. I end up cloning git projects using hg-git plugin just so I can use it to search the repo history.