jj/tests
Martin von Zweigbergk 26a554818a git: update our record of Git branches on export
When we export branches to Git, we didn't update our own record of
Git's refs. This frequently led to spurious conflicts in these refs
(e.g. #463). This is typically what happened:

 1. Import a branch pointing to commit A from Git
 2. Modify the branch in jj to point to commit B
 3. Export the branch to Git
 4. Update the branch in Git to point to commit C
 5. Import refs from Git

In step 3, we forgot to update our record of the branch in the repo
view's `git_refs` field. That led to the import in step 5 to think
that the branch moved from A to C in Git, which conflicts with the
internal branch target of B.

This commit fixes the bug by updating the refs in the `MutableRepo`.

Closes #463.
2022-11-13 15:06:10 -08:00
..
common tests: move testutils module into separate crate 2022-11-08 07:29:35 -08:00
test_alias.rs Include @ in the default revset 2022-10-19 13:30:16 -07:00
test_branch_command.rs
test_checkout.rs cli: drop support for ui.enable-open-commits config 2022-11-05 06:14:37 -07:00
test_commit_command.rs cli: add commit as its own command (not an alias for close) 2022-11-05 06:14:37 -07:00
test_concurrent_operations.rs cli: when merging concurrent operations, snapshot afterwards 2022-10-12 06:22:38 -07:00
test_describe_command.rs cli: make jj move/squash/unsquash ask for combined description 2022-08-30 21:41:26 -07:00
test_diff_command.rs diff: make sure word diff print final newline 2022-07-07 23:29:18 +09:00
test_edit_command.rs tests: avoid about-to-be-deleted open template keyword 2022-11-05 06:14:37 -07:00
test_git_clone.rs Fixes suggested by new version of Clippy 2022-11-03 21:38:16 -07:00
test_git_colocated.rs git: update our record of Git branches on export 2022-11-13 15:06:10 -08:00
test_git_push.rs tests: avoid about-to-be-deleted close command 2022-11-05 06:14:37 -07:00
test_git_remotes.rs cli: add git remote rename subcommand 2022-10-20 11:04:16 -07:00
test_gitignores.rs
test_global_opts.rs Add --config-toml command-line argument for additional TOML config 2022-11-05 21:21:33 -07:00
test_init_command.rs cli: use "hint" style for hint about using --git-repo=. 2022-11-12 17:58:22 -08:00
test_interdiff_command.rs conflicts: change diff line marker to %%%%%%% 2022-09-20 15:26:29 +09:00
test_log_command.rs revset: implement file(pattern[, candidates]) predicate 2022-10-24 01:48:00 +09:00
test_move_command.rs cli: make jj move/squash/unsquash ask for combined description 2022-08-30 21:41:26 -07:00
test_new_command.rs cli: fix crash on "jj merge whatever root" 2022-09-01 13:36:17 +09:00
test_obslog_command.rs Fixes suggested by new version of Clippy 2022-11-03 21:38:16 -07:00
test_operations.rs Include @ in the default revset 2022-10-19 13:30:16 -07:00
test_print_command.rs conflicts: change diff line marker to %%%%%%% 2022-09-20 15:26:29 +09:00
test_rebase_command.rs test_rebase_command: avoid unnecessary close command 2022-11-05 06:14:37 -07:00
test_restore_command.rs
test_revset_output.rs revset: report bad number of arguments with span 2022-11-03 09:41:04 +09:00
test_sparse_command.rs
test_split_command.rs
test_squash_command.rs tests: use jj new instead of jj merge in tests 2022-08-31 07:51:32 -07:00
test_templater.rs git: on initial export, export all branches 2022-11-13 15:06:10 -08:00
test_touchup_command.rs Fixes suggested by new version of Clippy 2022-11-03 21:38:16 -07:00
test_undo.rs
test_unsquash_command.rs tests: use jj new instead of jj merge in tests 2022-08-31 07:51:32 -07:00
test_untrack_command.rs cli: separate out hint in untrack message 2022-11-12 17:58:22 -08:00
test_workspaces.rs tests: avoid about-to-be-deleted close command 2022-11-05 06:14:37 -07:00