Page MenuHomeSoftware Heritage

utils: Ensure to return correct revision in parse_external_definition
ClosedPublic

Authored by anlambert on Jun 17 2022, 12:06 PM.

Details

Summary

An external definition can be of the following form (where XXX and YYY
are revision numbers):

-r XXX <repo_url>@YYY

In that case, the official subversion client will export the revision
XXX of the external repository.

So ensure to have the same behavior when the subversion loader processes
a repository with such external defintion in it.

Related sentry issue: SWH-LOADER-SVN-2Y

Diff Detail

Event Timeline

Build is green

Patch application report for D8003 (id=28839)

Rebasing onto 670365596e...

Current branch diff-target is up to date.
Changes applied before test
commit 651e2964eeb3c0dc3c691973bd26c6495593176d
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Fri Jun 17 12:01:36 2022 +0200

    utils: Ensure to return correct revision in parse_external_definition
    
    An external definition can be of the following form (where XXX and YYY
    are revision numbers):
    
            -r XXX <repo_url>@YYY
    
    In that case, the official subversion client will export the revision
    XXX of the external repository.
    
    So ensure to have the same behavior when the subversion loader processes
    a repository with such external defintion in it.

See https://jenkins.softwareheritage.org/job/DLDSVN/job/tests-on-diff/333/ for more details.

This revision is now accepted and ready to land.Jun 18 2022, 4:11 PM