Martin von Zweigbergk
c04f418e67
revsets: add difference operator
2021-04-18 22:45:12 -07:00
Martin von Zweigbergk
e733b074e1
revsets: restructure grammar to prepare for operator precedences
2021-04-18 22:45:12 -07:00
Martin von Zweigbergk
d9ae7cdd6d
revsets: allow parenthesized expressions
...
We'll clearly want to allow parenthesized expressions once we have
infix operators (if not before). Let's prepare by allowing parentheses
already now.
2021-04-18 22:45:12 -07:00
Martin von Zweigbergk
30aa459d2a
revsets: add a all_heads() revset function
...
This adds a `all_heads()` revset function, which contains all heads in
the view, i.e. including non-public heads and obsolete heads.
2021-04-18 22:31:46 -07:00
Martin von Zweigbergk
88904e2b63
revsets: add support for function syntax
...
This adds `parents(foo)` and `ancestors(foo)` as alternative ways of
writing `:foo` and `*:foo`.
I haven't added support for for whitespace yet; the parsing is very
strict. The error messages will also need to be improved later.
2021-04-18 21:25:58 -07:00
Martin von Zweigbergk
2d6325b0f4
revsets: define grammar in pest
2021-04-18 21:25:58 -07:00