ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/src
Martin von Zweigbergk 0d62a336af revsets: initial support for Mercurial-style revsets
This patch adds initial support for a DSL for specifying revisions
inspired by Mercurial's "revset" language. The initial support
includes prefix operators ":" (parents) and "*:" (ancestors) with
naive parsing of the revsets. Mercurial uses postfix operator "^" for
parent 1 just like Git does. It uses prefix operator "::" for
ancestors and the same operator as postfix operator for descendants. I
did it differently because I like the idea of using the same operator
as prefix/postfix depending on desired direction, so I wanted to apply
that to parents/children as well (and for
predecessors/successors). The "*" in the "*:" operator is copied from
regular expression syntax. Let's see how it works out. This is an
experimental VCS, after all.

I've updated the CLI to use the new revset support.

The implementation feels a little messy, but you have to start
somewhere...
2021-04-18 21:25:51 -07:00
..
commands.rs revsets: initial support for Mercurial-style revsets 2021-04-18 21:25:51 -07:00
diff_edit.rs trees: make tree diff return an iterator instead of taking a callback 2021-04-07 23:18:00 -07:00
graphlog.rs graphlog: propagate error from failure to write output 2021-04-07 09:35:56 -07:00
lib.rs commands: add an interactive mode for jj restore 2020-12-26 01:16:19 -08:00
main.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
styler.rs cli: terminate gracefully on broken pipe 2021-04-07 23:26:19 -07:00
template.pest import commit 0f15be02bf4012c116636913562691a0aaa7aed2 from my hg repo 2020-12-12 00:23:38 -08:00
template_parser.rs repo: make MutableRepo have an Arc<ReadonlyRepo> instead of a reference 2021-04-11 13:42:31 -07:00
templater.rs repo: make MutableRepo have an Arc<ReadonlyRepo> instead of a reference 2021-04-11 13:42:31 -07:00
testutils.rs tests: set $HOME in a few tests to avoid depending in developer's ~/.gitignore 2021-03-16 22:05:36 -07:00
ui.rs cli: terminate gracefully on broken pipe 2021-04-07 23:26:19 -07:00