FR: bookmark advance should not move upstream bookmarks by default
Is your feature request related to a problem? Please describe. I'd like to be able to merge as follows:
jj git fetch
jj new main my-feature-branch
jj commit ...
jj bookmark advance
jj git pushBut this doesn't work: jj bookmark advance moves both main and my-feature-branch to point to the merge commit.
Describe the solution you'd like
Change the default for revsets.bookmark-advance-from from heads(::to & bookmarks()) to something that excludes a configured list of "upstream" bookmarks, possibly defaulting to just those from a remote namaed upstream. For example:
revsets.bookmark-advance-from = "heads(::to & bookmarks()) & ~upstream_bookmarks()"
revsets."upstream-bookmarks()" = "remote_bookmarks(*, upstream)"(This conveniently works even if there is no remote named upstream.)
Describe alternatives you've considered
Automatically figuring out the bookmarks to move in the merge situation seems impossible: to jj there really isn't a difference between main and my-feature-branch. But if I know that (for example) my remote named upstream is the upstream github repository that my origin is forked from, then I know I never want to move any of its branches.
Source: jj-vcs/jj