docs: clarify that revset parents and children can be empty

I just added "can be empty" since it seems obvious when it becomes empty if it
can be empty. AFAICT, the confusion in #3821 is whether or not "no parents"
falls back to root().
This commit is contained in:
Yuya Nishihara 2024-06-06 16:34:38 +09:00
parent 186f639dfb
commit d2efd89135

View file

@ -50,8 +50,8 @@ Jujutsu attempts to resolve a symbol in the following order:
The following operators are supported. `x` and `y` below can be any revset, not
only symbols.
* `x-`: Parents of `x`.
* `x+`: Children of `x`.
* `x-`: Parents of `x`, can be empty.
* `x+`: Children of `x`, can be empty.
* `x::`: Descendants of `x`, including the commits in `x` itself.
* `x..`: Revisions that are not ancestors of `x`.
* `::x`: Ancestors of `x`, including the commits in `x` itself.