Skip to content

Commit 8739bdf

Browse files
committed
docs: mention expressions equivalent to heads() and roots()
In the context of #6659, I was wondering whether it would help if heads(x) were decomposed to x & ~::x-.
1 parent bac6e4e commit 8739bdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/revsets.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ revsets (expressions) as arguments.
244244
* `root()`: The virtual commit that is the oldest ancestor of all other commits.
245245

246246
* `heads(x)`: Commits in `x` that are not ancestors of other commits in `x`.
247-
Note that this is different from
247+
Equivalent to `x ~ ::x-`. Note that this is different from
248248
[Mercurial's](https://repo.mercurial-scm.org/hg/help/revsets) `heads(x)`
249249
function, which is equivalent to `x ~ x-`.
250250

251251
* `roots(x)`: Commits in `x` that are not descendants of other commits in `x`.
252-
Note that this is different from
252+
Equivalent to `x ~ x+::`. Note that this is different from
253253
[Mercurial's](https://repo.mercurial-scm.org/hg/help/revsets) `roots(x)`
254254
function, which is equivalent to `x ~ x+`.
255255

0 commit comments

Comments
 (0)