Page MenuHomeSoftware Heritage

ra: Prevent erroneous removing of file state
ClosedPublic

Authored by anlambert on Nov 18 2021, 11:58 AM.

Details

Summary

When recursively removing a directory content in a revision, ensure
to not remove state of file whose name has the same prefix as the
removed directory.

Related sentry issue

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 D6654 (id=24184)

Rebasing onto fdf526ecea...

Current branch diff-target is up to date.
Changes applied before test
commit 631a2b9d7f7e1e9009cc2a4718e94128a625459a
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Thu Nov 18 11:55:20 2021 +0100

    ra: Prevent erroneous removing of file state
    
    When recursively removing a directory content in a revision, ensure
    to not remove state of file whose name has the same prefix as the
    removed directory.

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

This revision is now accepted and ready to land.Nov 18 2021, 12:19 PM