5 ms·
Also 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 pag
by masklinn 11y ago
Also 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)