Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

What is it about these revsets that can't be achieved with a "git log --graph --decorate --all"?


Those 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

A complete example, which appears to have some popularity in Mozilla:

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.


> 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.


Usage without a PhD in git-manpage-generator, primarily.


love to have someone with a PhD in git show how to do the `hg wip` from jordigh above.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: