Skip to content

How best to abandon an entire branch? #5864

Answered by ilyagr
sersorrel asked this question in Q&A
Discussion options

You must be logged in to vote

For real-world usage, I'd recommend jj abandon foo..C and @arialdomartini 's suggestions.

For the problem as stated, I'm not sure I can do much better than '((visible_heads() | bookmarks()) ~ bar)..bar', which you could make a revset alias (with a parameter).

This revset is not perfect. It's unclear to me whether it's behavior if there was another bookmark at the same place as bar is good, but then it's also unclear what you'd want to happen in this situation.

Others might have suggestions, but I think that for it to really work, we'd need some form of #4496 (which we aren't sure how to do right).

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@sersorrel
Comment options

Answer selected by sersorrel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants