jj/lib/tests
Baltasar Dinis 1be574c219 git: update jj git clone|fetch to use new GitFetch api directly.
* Make the new `GitFetch` api public.
* Move `git::fetch` to `lib/tests/test_git.rs` as `git_fetch`, to minimize
  churn in the tests. Update test call sites to use `git_fetch`
* Delete the `git::fetch` from `lib/src/git.rs`.
* Update `jj git clone` and `git_fetch` in `cli/src/git_utils.rs` to use
  the new api directly. Removing one redundant layer of indirection.
* This fixes #4920 as it first fetches from all remotes before `import_refs()`
  is called, so there is no race condition if the same commit is treated
  differently in different remotes specified in the same command.

Original commit by @essiene
2025-01-28 18:29:01 +00:00
..
runner.rs
test_annotate.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_bad_locking.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_commit_builder.rs repo: move rebase_descendants_with_options_return_map() to tests 2025-01-18 01:21:28 +00:00
test_commit_concurrent.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_conflicts.rs conflicts: show "noeol" state in conflict marker comment 2025-01-27 22:59:06 +00:00
test_default_revset_graph_iterator.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_git.rs git: update jj git clone|fetch to use new GitFetch api directly. 2025-01-28 18:29:01 +00:00
test_git_backend.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_gpg.rs
test_id_prefix.rs repo: pass &Commit to record_abandoned_commit() to simplify error handling 2025-01-17 00:28:25 +00:00
test_index.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_init.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_load_repo.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_local_working_copy.rs local_working_copy: on snapshot, ignore submodule in ignored directories 2025-01-08 09:39:59 +09:00
test_local_working_copy_concurrent.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_local_working_copy_sparse.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_merge_trees.rs rewrite: back out 9d4a973 2025-01-07 09:08:46 -08:00
test_merged_tree.rs
test_mut_repo.rs repo: move rebase_descendants_with_options_return_map() to tests 2025-01-18 01:21:28 +00:00
test_operations.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_refs.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_revset.rs graph: make reverse_graph() accept separate node id type 2025-01-22 00:44:42 +00:00
test_rewrite.rs rewrite: add option to delete abandoned bookmarks 2025-01-21 02:37:07 +00:00
test_rewrite_duplicate.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_rewrite_transform.rs repo: remove &UserSettings argument from new/rewrite_commit(), use self.settings 2024-12-31 10:51:57 +09:00
test_signing.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00
test_ssh_signing.rs
test_view.rs repo: pass &Commit to record_abandoned_commit() to simplify error handling 2025-01-17 00:28:25 +00:00
test_workspace.rs tests: add convenient method to initialize TestWorkspace with test settings 2025-01-06 22:37:33 +09:00