Revset to identify a megamerge #7588
Replies: 3 comments 4 replies
-
|
I am cheesy and I usually just |
Beta Was this translation helpful? Give feedback.
-
|
I've started using megamerges more often and gotten lazy about naming them, so I've added this alias to find the "closest" megamerge to [revset-aliases]
'mega' = 'heads(merges() & ::@)'I use it most often like this to insert a new commit between $ jj squash -A main -B mega(I actually have |
Beta Was this translation helpful? Give feedback.
-
|
@lilyball shared her revset for identifying a megamerge (which she calls revset-aliases."stack_point()" = "exactly(coalesce(@ & merges(), heads(reachable(@, mutable()) & merges())), 1)"; |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With the jj megamerge workflow, I'd like to have a command to create a new stream of work from the working commit. Currently, this looks like
jj split -A 'trunk()' -B my_megamerge ..I'd like to write a revset alias that identifies the megamerge commit.
Here’s the best i’ve got so far, but it doesn’t work reliably if you have multiple megamerges or if you have commits that merge with each other as ancestors of the megamerge commit.
Is there a way to get the ‘descendent-most’ commit from a set of commits? (E.g. from a revset get a commit that doesn't have any of the other commits as a descendant?)
Beta Was this translation helpful? Give feedback.
All reactions