ok/jj
1
0
Fork 0
forked from mirrors/jj

docs: use bullet lists in revset examples to save vertical space

This commit is contained in:
Martin von Zweigbergk 2024-06-19 03:48:01 -07:00 committed by Martin von Zweigbergk
parent 3e7ad4d23c
commit 9257d0946e

View file

@ -95,123 +95,79 @@ You can use parentheses to control evaluation order, such as `(x & y) | z` or
**Operator** `x-` **Operator** `x-`
`D-``{C,B}` * `D-``{C,B}`
* `B-``{A}`
`B-``{A}` * `A-``{root()}`
* `root()-``{}` (empty set)
`A-``{root()}` * `none()-``{}` (empty set)
* `(D|A)-``{C,B,root()}`
`root()-``{}` (empty set) * `(C|B)-``{A}`
`none()-``{}` (empty set)
`(D|A)-``{C,B,root()}`
`(C|B)-``{A}`
**Operator** `x+` **Operator** `x+`
`D+``{}` (empty set) * `D+``{}` (empty set)
* `B+``{D}`
`B+``{D}` * `A+``{B,C}`
* `root()+``{A}`
`A+``{B,C}` * `none()+``{}` (empty set)
* `(C|B)+``{D}`
`root()+``{A}` * `(B|root())+``{D,A}`
`none()+``{}` (empty set)
`(C|B)+``{D}`
`(B|root())+``{D,A}`
**Operator** `x::` **Operator** `x::`
`D::``{D}` * `D::``{D}`
* `B::``{D,B}`
`B::``{D,B}` * `A::``{D,C,B,A}`
* `root()::``{D,C,B,A,root()}`
`A::``{D,C,B,A}` * `none()::``{}` (empty set)
* `(C|B)::``{D,C,B}`
`root()::``{D,C,B,A,root()}`
`none()::``{}` (empty set)
`(C|B)::``{D,C,B}`
**Operator** `x..` **Operator** `x..`
`D..``{}` (empty set) * `D..``{}` (empty set)
* `B..``{D,C}` (note that, unlike `B::`, this includes `C`)
`B..``{D,C}` (note that, unlike `B::`, this includes `C`) * `A..``{D,C,B}`
* `root()..``{D,C,B,A}`
`A..``{D,C,B}` * `none()..``{D,C,B,A,root()}`
* `(C|B)..``{D}`
`root()..``{D,C,B,A}`
`none()..``{D,C,B,A,root()}`
`(C|B)..``{D}`
**Operator** `::x` **Operator** `::x`
`::D``{D,C,B,A,root()}` * `::D``{D,C,B,A,root()}`
* `::B``{B,A,root()}`
`::B``{B,A,root()}` * `::A``{A,root()}`
* `::root()``{root()}`
`::A``{A,root()}` * `::none()``{}` (empty set)
* `::(C|B)``{C,B,A,root()}`
`::root()``{root()}`
`::none()``{}` (empty set)
`::(C|B)``{C,B,A,root()}`
**Operator** `..x` **Operator** `..x`
`..D``{D,C,B,A}` * `..D``{D,C,B,A}`
* `..B``{B,A}`
`..B``{B,A}` * `..A``{A}`
* `..root()``{}` (empty set)
`..A``{A}` * `..none()``{}` (empty set)
* `..(C|B)``{C,B,A}`
`..root()``{}` (empty set)
`..none()``{}` (empty set)
`..(C|B)``{C,B,A}`
**Operator** `x::y` **Operator** `x::y`
`D::D``{D}` * `D::D``{D}`
* `B::D``{D,B}` (note that, unlike `B..D`, this includes `B` and excludes `C`)
`B::D``{D,B}` (note that, unlike `B..D`, this includes `B` and excludes `C`) * `A::D``{D,C,B,A}`
* `root()::D``{D,C,B,A,root()}`
`A::D``{D,C,B,A}` * `none()::D``{}` (empty set)
* `D::B``{}` (empty set)
`root()::D``{D,C,B,A,root()}` * `(C|B)::(C|B)``{C,B}`
`none()::D``{}` (empty set)
`D::B``{}` (empty set)
`(C|B)::(C|B)``{C,B}`
**Operator** `x..y` **Operator** `x..y`
`D..D``{}` (empty set) * `D..D``{}` (empty set)
* `B..D``{D,C}` (note that, unlike `B::D`, this includes `C` and excludes `B`)
`B..D``{D,C}` (note that, unlike `B::D`, this includes `C` and excludes `B`) * `A..D``{D,C,B}`
* `root()..D``{D,C,B,A}`
`A..D``{D,C,B}` * `none()..D``{D,C,B,A,root()}`
* `D..B``{}` (empty set)
`root()..D``{D,C,B,A}` * `(C|B)..(C|B)``{}` (empty set)
`none()..D``{D,C,B,A,root()}`
`D..B``{}` (empty set)
`(C|B)..(C|B)``{}` (empty set)
## Functions ## Functions
@ -339,47 +295,33 @@ given [string pattern](#string-patterns).
**function** `reachable()` **function** `reachable()`
`reachable(E, A..)``{E,D,C,B}` * `reachable(E, A..)``{E,D,C,B}`
* `reachable(D, A..)``{E,D,C,B}`
`reachable(D, A..)``{E,D,C,B}` * `reachable(C, A..)``{E,D,C,B}`
* `reachable(B, A..)``{E,D,C,B}`
`reachable(C, A..)``{E,D,C,B}` * `reachable(A, A..)``{}` (empty set)
`reachable(B, A..)``{E,D,C,B}`
`reachable(A, A..)``{}` (empty set)
**function** `connected()` **function** `connected()`
`connected(E|A)``{E,B,A}` * `connected(E|A)``{E,B,A}`
* `connected(D|A)``{D,C,B,A}`
`connected(D|A)``{D,C,B,A}` * `connected(A)``{A}`
`connected(A)``{A}`
**function** `heads()` **function** `heads()`
`heads(E|D)``{E,D}` * `heads(E|D)``{E,D}`
* `heads(E|C)``{E,C}`
`heads(E|C)``{E,C}` * `heads(E|B)``{E}`
* `heads(E|A)``{E}`
`heads(E|B)``{E}` * `heads(A)``{A}`
`heads(E|A)``{E}`
`heads(A)``{A}`
**function** `roots()` **function** `roots()`
`roots(E|D)``{E,D}` * `roots(E|D)``{E,D}`
* `roots(E|C)``{E,C}`
`roots(E|C)``{E,C}` * `roots(E|B)``{B}`
* `roots(E|A)``{A}`
`roots(E|B)``{B}` * `roots(A)``{A}`
`roots(E|A)``{A}`
`roots(A)``{A}`
## String patterns ## String patterns