ok/jj
1
0
Fork 0
forked from mirrors/jj
jj/lib/tests
Martin von Zweigbergk aef27d5701 revsets: remove transitive edges in graph iterator by default
The git.git repo seems to have lots of merges from far back in the
history into newer history. That results in `jj log -r 'git_refs()'`
being completely useless because of the number of such edges. For
example, v2.31.0 has almost 600 edges going out of it and presumably
merging (forking) back into various different previous versions. Git,
unlike Mercurial, seems to remove an edge from the graph if the edge
can also be reached via a longer path. This commit makes it so we also
do that (i.e. the filtered graph is a transitive reduction of the
graph before filtering).

This slows down `jj log -r ,,v2.0.0 -T ""` by about 2%. That's still
small enough that it doesn't seem worth it to have a separate iterator
for contiguous ranges (which would be an option).
2021-05-01 23:25:33 -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: remove transitive edges in graph iterator by default 2021-05-01 23:25:33 -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