There is no logic in place right now to delete the files with suffix
'_old' which are created solely for debugging purposes in addremotefilelognode
method. There is no need to keep these files around if a corresponding file
without the '_old' doesn't exist. Therefore, this commit removes such files if
they are no longer required. This also allows for more robust deletion of the
directories during the clean up because sometimes they contain only the files
with '_old' suffix.
Details
Details
- Reviewers
quark - Group Reviewers
Restricted Project - Commits
- rFBHGX92460c4c947d: basestore: remove unnecessary files with suffix '_old' during clean up
- Ran all the tests.
- Tested that the files with '_old' suffix are removed during hg repack --incremental on a sample repo.
Diff Detail
Diff Detail
- Repository
- rFBHGX Facebook Mercurial Extensions
- Lint
Lint Skipped - Unit
Unit Tests Skipped
You can use mercurial.util.tryunlink(filepath) here.