Page MenuHomeSoftware Heritage

svn: Handle sub-project root directory removal in revision
ClosedPublic

Authored by anlambert on Mar 8 2022, 4:46 PM.

Details

Summary

It exist cases where the root directory of a subversion sub-project
is removed in a revision.

Handle that edge case by returning the empty directory as new root
directory to avoid loading error.

Fixes SWH-LOADER-SVN-6V

Diff Detail

Repository
rDLDSVN Subversion (SVN) loader
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D7313 (id=26456)

Rebasing onto eecddf13d5...

Current branch diff-target is up to date.
Changes applied before test
commit 1ab379d0e712535ffb440b65ea25b610eb37f2ea
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Mar 8 16:43:45 2022 +0100

    svn: Handle sub-project root directory removal in revision
    
    It exist cases where the root directory of a subversion sub-project
    is removed in a revision.
    
    Handle that edge case by returning the empty directory as new root
    directory to avoid loading error.

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

Build is green

Patch application report for D7313 (id=26457)

Rebasing onto eecddf13d5...

Current branch diff-target is up to date.
Changes applied before test
commit af821525c5cd0415daf9dfa8fb5a096b0f3171f1
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Tue Mar 8 16:43:45 2022 +0100

    svn: Handle sub-project root directory removal in revision
    
    It exist cases where the root directory of a subversion sub-project
    is removed in a revision.
    
    Handle that edge case by returning the empty directory as new root
    directory to avoid loading error.

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

This revision is now accepted and ready to land.Mar 8 2022, 6:15 PM