jj/lib/tests
Martin von Zweigbergk 33da97f0bf revsets: add iterator adapter for rendering simplified graph of set
When rendering a non-contiguous subset of the commits, we want to
still show the connections between the commits in the graph, even
though they're not directly connected. This commit introduces an
adaptor for the revset iterators that also yield the edges to show in
such a simplified graph.

This has no measurable impact on `jj log -r ,,v2.0.0` in the git.git
repo.


The output of `jj log -r 'v1.0.0 | v2.0.0'` now looks like this:

```
o   e156455ea491 e156455ea491 gitster@pobox.com 2014-05-28 11:04:19.000 -07:00 refs/tags/v2.0.0
:\  Git 2.0
: ~
o c2f3bf071ee9 c2f3bf071ee9 junkio@cox.net 2005-12-21 00:01:00.000 -08:00 refs/tags/v1.0.0
~ GIT 1.0.0
```

Before this commit, it looked like this:

```
o e156455ea491 e156455ea491 gitster@pobox.com 2014-05-28 11:04:19.000 -07:00 refs/tags/v2.0.0
| Git 2.0
| o   c2f3bf071ee9 c2f3bf071ee9 junkio@cox.net 2005-12-21 00:01:00.000 -08:00 refs/tags/v1.0.0
| |\  GIT 1.0.0
```

The output of `jj log -r 'git_refs()'` in the git.git repo is still
completely useless (it's >350k lines and >500MB of data). I think
that's because we don't filter out edges to ancestors that we have
transitive edges to. Mercurial also doesn't filter out such edges, but
Git (with `--simplify-by-decoration`) seems to filter them out. I'll
change it soon so we filter them out.
2021-05-01 14:56:52 -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 cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_commit_concurrent.rs tests: use one thread per core in concurrency tests 2021-04-29 00:01:04 -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 tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -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 cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_mut_repo.rs tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -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 tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -07:00
test_revset_graph_iterator.rs revsets: add iterator adapter for rendering simplified graph of set 2021-05-01 14:56:52 -07:00
test_view.rs tests: add a helper for building commit graphs when only topology is important 2021-04-30 22:46:20 -07:00
test_working_copy.rs cleanup: address warnings reported by new clippy version 2021-04-28 09:12:48 -07:00
test_working_copy_concurrent.rs tests: use one thread per core in concurrency tests 2021-04-29 00:01:04 -07:00