Page MenuHomeSoftware Heritage

from_disk: Implement Directory.__contains__
ClosedPublic

Authored by anlambert on Dec 8 2021, 2:42 PM.

Details

Summary

It enables to easily check if a path exists from a root directory.

Diff Detail

Repository
rDMOD Data model
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 D6789 (id=24626)

Rebasing onto c525484e47...

Current branch diff-target is up to date.
Changes applied before test
commit f6e0a289ef6eb87e18ce52f6cb6bc668afafaaca
Author: Antoine Lambert <anlambert@softwareheritage.org>
Date:   Wed Dec 8 14:41:53 2021 +0100

    from_disk: Implement Directory.__contains__
    
    It enables to easily check if a path exists from a root directory.

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

olasd added a subscriber: olasd.

Neat, thanks.

This revision is now accepted and ready to land.Dec 8 2021, 3:15 PM