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