Skip to content

Conversation

yuja
Copy link
Contributor

@yuja yuja commented Jan 18, 2025

Closes #3505

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added tests to cover my changes

@yuja yuja force-pushed the push-ypnlmukkyrur branch from c5256f9 to 078d0e5 Compare January 19, 2025 11:02
Copy link
Member

@martinvonz martinvonz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

yuja added 4 commits January 21, 2025 10:13
I'll make "jj abandon" delete bookmarks by default. This could be handled by
cmd_abandon(), but we'll need a repo API if we also want to change the behavior
of "jj rebase --skip-emptied".
…tionally

This will help implement "jj abandon --retain-bookmarks".
Based on the discussion in jj-vcs#3505, I think the sliding behavior isn't favored at
least for "jj abandon". This patch changes the default to delete bookmarks.

"jj rebase --skip-emptied" can also be updated if needed. It might be good for
consistency. However, I'm skeptical about changing the default of the internal
API. It's not easy to add generic reporting mechanism for deleted/abandoned
bookmarks. If we added one in report_repo_changes(), redundant message would be
printed on "jj git fetch". So I think callers should enable the deletion
explicitly.

Closes jj-vcs#3505
@yuja yuja force-pushed the push-ypnlmukkyrur branch from 078d0e5 to ff2040c Compare January 21, 2025 01:13
@yuja yuja added this pull request to the merge queue Jan 21, 2025
Merged via the queue into jj-vcs:main with commit 4a50a35 Jan 21, 2025
19 checks passed
@yuja yuja deleted the push-ypnlmukkyrur branch January 21, 2025 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FR: Stop branches from sliding back on jj abandon, delete them instead
2 participants