From d2efd8913586a1dd7adf9b74c4d443100739c2eb Mon Sep 17 00:00:00 2001 From: Yuya Nishihara Date: Thu, 6 Jun 2024 16:34:38 +0900 Subject: [PATCH] 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(). --- docs/revsets.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/revsets.md b/docs/revsets.md index 5fefbd35a..c70a07822 100644 --- a/docs/revsets.md +++ b/docs/revsets.md @@ -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.