| 1 |
# NOTE: ensure you update docs/revsets.md with documentation when |
| 2 |
# adding/updating any of these aliases |
| 3 |
|
| 4 |
[revsets] |
| 5 |
arrange = "reachable(@, mutable())" |
| 6 |
converge = "mutable() & divergent()" |
| 7 |
fix = "reachable(@, mutable())" |
| 8 |
run = "reachable(@, mutable())" |
| 9 |
simplify-parents = "reachable(@, mutable())" |
| 10 |
# log revset is also used as the default short-prefixes. If it failed to |
| 11 |
# evaluate, lengthy warning messages would be printed. Use present(expr) if |
| 12 |
# symbols in expr might not always exist. |
| 13 |
log = "builtin_log()" |
| 14 |
# Emit the working-copy branch first, which is usually most interesting. |
| 15 |
# This also helps stabilize output order. |
| 16 |
log-graph-prioritize = "present(@)" |
| 17 |
op-diff-changes-in = "mutable() | immutable_heads()" |
| 18 |
sign = "reachable(@, mutable())" |
| 19 |
bookmark-advance-to = "@" |
| 20 |
bookmark-advance-from = "heads(::to & bookmarks())" |
| 21 |
|
| 22 |
[revset-aliases] |
| 23 |
# trunk() can be overridden as '<bookmark>@<remote>'. |
| 24 |
'trunk()' = ''' |
| 25 |
latest( |
| 26 |
remote_bookmarks(exact:"main", exact:"origin") | |
| 27 |
remote_bookmarks(exact:"master", exact:"origin") | |
| 28 |
remote_bookmarks(exact:"trunk", exact:"origin") | |
| 29 |
remote_bookmarks(exact:"main", exact:"upstream") | |
| 30 |
remote_bookmarks(exact:"master", exact:"upstream") | |
| 31 |
remote_bookmarks(exact:"trunk", exact:"upstream") | |
| 32 |
root() |
| 33 |
) |
| 34 |
''' |
| 35 |
|
| 36 |
# The default set of revisions shown by `jj log` if no revisions or paths are |
| 37 |
# specified. |
| 38 |
'builtin_log()' = 'present(@) | ancestors(immutable_heads().., 2) | trunk()' |
| 39 |
|
| 40 |
# If immutable_heads() failed to evaluate, many jj commands wouldn't work. Use |
| 41 |
# present(expr) if symbols in expr might not always exist. |
| 42 |
'builtin_immutable_heads()' = ''' |
| 43 |
trunk() | tags() | untracked_remote_bookmarks() | untracked_remote_tags() |
| 44 |
''' |
| 45 |
'immutable_heads()' = 'builtin_immutable_heads()' |
| 46 |
'immutable()' = '::(immutable_heads() | root())' |
| 47 |
'mutable()' = '~immutable()' |
| 48 |
|
| 49 |
'visible()' = '::visible_heads()' |
| 50 |
'hidden()' = '~visible()' |