jj/lib/tests
Martin von Zweigbergk 145731ec74 revsets: change operators around a bit to prepare for infix DAG range operator
I really liked the idea of having the operators for parents and
ancestors (etc.) look similar, but that turned out to be problematic
when we want to add an infix operator for a DAG range (hg's `::`
revset operator and git's `--ancestry-path` flag). Let's say we chose
`:*:` as the operator. Part of the problem is how to parse `foo:*:bar`
without eagerly parsing the `foo:`. It would also be nicer to use
exactly the same operator as prefix, postfix, and infix. Since the
"parents" operator can be repeated, we can't have it be just `:` and
the "ancestors" operator be `::`. We could make the "ancestors"
operator be something like `*:*` (or anything symmetric with the `:`
symbol on the inside). However, at that point, the operator is getting
ugly and hard to type. Another option would be to use `:` for
ancestors and `::` for parents, but that is counterintuitive and get
annoying if you want to repeat it. So it seems that the best option is
to simply pick different symbols for parents/children and
ancestors/descendants/range.

This patch changes the ancestors/descendants operators to both be
`,,`. I'm not at all attached to that particular symbol. I suspect
we'll change it later.
2021-04-23 11:11:07 -07:00
..
test_bad_locking.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_commit_builder.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_commit_concurrent.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_diff_summary.rs cargo: rename crates to names available on crates.io 2021-01-03 10:16:00 -08:00
test_evolution.rs evolution: walk orphans using index 2021-04-14 08:25:14 -07:00
test_git.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_index.rs index: make IndexRef::entry_by_id() etc return entry with repo's lifetime 2021-04-15 07:00:04 -07:00
test_init.rs transaction: delete write_commit() and as_repo_ref() helpers 2021-03-16 22:45:58 -07:00
test_load_repo.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_merge_trees.rs rustfmt: configure to merge imports by module 2021-03-14 10:53:14 -07:00
test_mut_repo.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_operations.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00
test_revset.rs revsets: change operators around a bit to prepare for infix DAG range operator 2021-04-23 11:11:07 -07:00
test_view.rs view: make root commit public 2021-04-18 23:04:15 -07:00
test_working_copy.rs repo: make MutableRepo have an Arc<ReadonlyRepo> instead of a reference 2021-04-11 13:42:31 -07:00
test_working_copy_concurrent.rs repo: make reload() and reload_at() return a new ReadonlyRepo 2021-04-11 10:39:29 -07:00