-
Yes, jj doesn't have branches – but git does, and if I have some history like this:
it can happen that I am no longer interested in the entire branch that So far what I came up with was After playing around a bit more, I realised that the above revset misbehaves in the following scenario:
Here, I'd hope to only abandon Are there any situations in which this updated revset might not work well? Is there a "standard" way of doing this that I haven't found? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Possibly related: #5872 I guess you could simply do
|
Beta Was this translation helpful? Give feedback.
-
For real-world usage, I'd recommend For the problem as stated, I'm not sure I can do much better than This revset is not perfect. It's unclear to me whether it's behavior if there was another bookmark at the same place as 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). |
Beta Was this translation helpful? Give feedback.
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).