Fix computation of parent base in jujutsu with multiple fork points.

Review Request #14853 — Created Feb. 25, 2026 and updated

Information

RBTools
release-6.x

Reviewers

It turns out with complex trees of merges, the fork_point() revset can
return multiple results. Since we really only care about the most recent fork
point, we can wrap this in latest() so that it returns a single
revision.

Posted a change where I hadn't rebased my giant dev tree in a while and had
two fork points back to master and saw that it no longer crashed.

Summary ID
Fix computation of parent base in jujutsu with multiple fork points.
It turns out with complex trees of merges, the `fork_point()` revset can return multiple results. Since we really only care about the most recent fork point, we can wrap this in `latest()` so that it returns a single revision. Testing Done: Posted a change where I hadn't rebased my giant dev tree in a while and had two fork points back to master and saw that it no longer crashed.
wvmskzwnvurswonumxvkysqxmnonuzrk
Description From Last Updated

Can we mention in the docstring or a comment that if there are multiple fork points the most recent one …

maubinmaubin
maubin
  1. 
      
  2. Show all issues

    Can we mention in the docstring or a comment that if there are multiple fork points the most recent one will be returned.

  3. 
      
david
Review request changed
Commits:
Summary ID
Fix computation of parent base in jujutsu with multiple fork points.
It turns out with complex trees of merges, the `fork_point()` revset can return multiple results. Since we really only care about the most recent fork point, we can wrap this in `latest()` so that it returns a single revision. Testing Done: Posted a change where I hadn't rebased my giant dev tree in a while and had two fork points back to master and saw that it no longer crashed.
wvmskzwnvurswonumxvkysqxmnonuzrk
Fix computation of parent base in jujutsu with multiple fork points.
It turns out with complex trees of merges, the `fork_point()` revset can return multiple results. Since we really only care about the most recent fork point, we can wrap this in `latest()` so that it returns a single revision. Testing Done: Posted a change where I hadn't rebased my giant dev tree in a while and had two fork points back to master and saw that it no longer crashed.
wvmskzwnvurswonumxvkysqxmnonuzrk

Checks run (2 succeeded)

flake8 passed.
JSHint passed.