-
Suppose I have something like this:
A revset operation I often want to perform is: "given a set of commits, get me everything from their least common ancestor to them" (generally to pass to For example, if we're interested in the two commits But how do I perform this operation more generally? Ie in cases where the common ancestor is obscured by If I had a least common ancestor function, say, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 8 replies
-
Here's a monstrosity I came up with for the 2 case:
|
Beta Was this translation helpful? Give feedback.
-
I think you can write |
Beta Was this translation helpful? Give feedback.
-
I'm not sure exactly what you're looking for. Let's say you have this history:
If you now have You might have instead only wanted The same thing was asked on Discord a while ago (here). I looped you in there but I'm not sure you're on Discord these days, and it's useful to have an answer here anyway. For the 2-argument case, see @arxanas reply (it was that reply that prompted me to finish this draft I had since yesterday). |
Beta Was this translation helpful? Give feedback.
-
For posterity we now have |
Beta Was this translation helpful? Give feedback.
For posterity we now have
fork_point()
, so for a sets
we can dofork_point(s)::s
, which is a big improvement.