mirror of
https://github.com/martinvonz/jj.git
synced 2025-01-16 00:56:23 +00:00
f6c24fbcef
Before this patch, the order would depend on the reason we failed to export a ref, because we would add to the `failed_branches` list in several different places. What's worse, when the export failed because the branch was conflicted or had an invalid name (from Git's perspective), it was non-deterministic because we iterated over a HashSet. This patch fixes that by sorting at the end. Note that we still want the `branches_to_update` map to be a `BTreeMap` so we update branches in deterministic order. Otherwise the error when trying to export both branches `main` and `main/sub` will become non-deterministic. |
||
---|---|---|
.. | ||
test_bad_locking.rs | ||
test_commit_builder.rs | ||
test_commit_concurrent.rs | ||
test_conflicts.rs | ||
test_default_revset_graph_iterator.rs | ||
test_diff_summary.rs | ||
test_git.rs | ||
test_id_prefix.rs | ||
test_index.rs | ||
test_init.rs | ||
test_load_repo.rs | ||
test_merge_trees.rs | ||
test_merged_tree.rs | ||
test_mut_repo.rs | ||
test_operations.rs | ||
test_refs.rs | ||
test_revset.rs | ||
test_rewrite.rs | ||
test_view.rs | ||
test_working_copy.rs | ||
test_working_copy_concurrent.rs | ||
test_working_copy_sparse.rs | ||
test_workspace.rs |