Note:
This page is primarily intended for developers of Mercurial.
Revset Operators Plan
With new revset functions comes new workflows and the desire to quickly enter them. This page serves as a discussion for proposed operators. Current unused single ASCII characters that could be used:
#$%*=[]{}\/,<>
One possibility is that we could have two character operators.
only()
This function is extremely handy and allows a quick way to view your current branch. The suggested operator is % (as in mod) though it might make more sense to use a set difference operator. For example,
only(.,@) → .%@ only(@) → @%
children()
Navigating history is much easier if there is a way to say 'first child'. One proposal was to overload the parent operator ^ to use negative numbers but that could led to confusion since children are not defined to have an order.