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