HomeSoftware Heritage

replay: Fix handling of directory symlink in external

Description

replay: Fix handling of directory symlink in external

As we use distutils.dir_util.copy_tree to copy an external exported
in a cache directory to the reconstructed filesystem of the subversion
repository, we need to ensure sub-directories of the external will
exist in the destination path to avoid copy errors.

However, if a sub-directory is a symlink, we must not create the
directory in the destination path as copy_tree will fail attempting
to recreate the symlink.

Details

Provenance
anlambertAuthored on Mar 21 2022, 5:12 PM
anlambertPushed on Mar 22 2022, 10:53 AM
Differential Revision
D7402: replay: Fix handling of directory symlink in external
Parents
rDLDSVNaf821525c5cd: svn: Handle sub-project root directory removal in revision
Branches
Unknown
Tags
Unknown
Build Status
Buildable 27644
Build 43273: test-and-buildJenkins console · Jenkins