forked from mirrors/jj
b4a0e513dd
While working on demos, I noticed that `jj log` output in the octocat/Hello-World repo was unstable: sometimes the first parent of the merge was on the left and sometimes it was on the right. This patch fixes that by sorting the edges by position in the index just before returning them. It seems that most applications would want stable output so I put it in the `RevsetGraphIterator` rather than doing at the call site in the CLI. I ordered them with the reverse index position rather than forward because it seemed to make the graphs in the git.git repo slight nicer, with the left-most edge going between subsequent releases. There performance difference is within the noise level. |
||
---|---|---|
.. | ||
test_bad_locking.rs | ||
test_commit_builder.rs | ||
test_commit_concurrent.rs | ||
test_conflicts.rs | ||
test_diff_summary.rs | ||
test_git.rs | ||
test_index.rs | ||
test_init.rs | ||
test_load_repo.rs | ||
test_merge_trees.rs | ||
test_mut_repo.rs | ||
test_operations.rs | ||
test_refs.rs | ||
test_revset.rs | ||
test_revset_graph_iterator.rs | ||
test_rewrite.rs | ||
test_view.rs | ||
test_working_copy.rs | ||
test_working_copy_concurrent.rs |