-
Notifications
You must be signed in to change notification settings - Fork 404
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cli split: Add a config option controlling how bookmarks move during …
…splits Currently, `jj split` moves bookmarks from the target revision to the second revision created by the split. Since the first revision inherits the change id of the target revision, moving the bookmarks to the first revision is less surprising (i.e. the bookmarks stay with the change id). This no-implicit-move behavior also aligns with how `jj abandon` drops bookmarks instead of moving them to the parent revision. Two releases from now, `jj split` will no longer move bookmarks to the second revision created by the split. Instead, local bookmarks associated with the target revision will move to the first revision created by the split (which inherits the target revision's change id). You can opt out of this change by setting `split.legacy-bookmark-behavior = true`, but this will likely be removed in a future release. You can also try the new behavior now by setting `split.legacy-bookmark-behavior = false`. Users who have not opted into the new behavior via the config setting will see a warning when they run `jj split` informing them about the change. The default behavior be changed in the future. The `jj split` tests for bookmarks are updated to run in all three configurations: - Config setting enabled - Config setting disabled - Config setting unset #3419
- Loading branch information
1 parent
ae59bd8
commit d5d2164
Showing
4 changed files
with
202 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.