SERVER-139386In Code Review

Speed up Copybara history lookup and bootstrap legacy releases

Copybara startup repeatedly scanned destination history for each source commit, making legacy release syncs spend hours searching for a baseline. {{sync_repo_with_copybara.py}} now indexes destination history once while preserving the bottom-most {{GitOrigin-RevId}}, literal-space filtering, candidate ordering, and branch ancestry rules. Direct regression comparisons check old-versus-new lookup results. Imported public history without sync trailers can bootstrap from identical reachable commits

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.