HomeSoftware Heritage

handle deleted files when getting unstaged changes

Description

handle deleted files when getting unstaged changes

If one of the changes that hasn't been staged involves deleting a file,
blob_from_path_and_stat() throws an OSError. Trap the error and treat
the deleted file as a change by emitting the name of the file.

This bug was reported downstream against reno as
https://bugs.launchpad.net/reno/+bug/1655719

Signed-off-by: Doug Hellmann <doug@doughellmann.com>

Details

Provenance
Doug Hellmann <doug@doughellmann.com>Authored on Jan 11 2017, 9:37 PM
jelmerCommitted on Jan 11 2017, 10:08 PM
ardumontPushed on Sep 27 2021, 5:34 PM
Parents
rPPDW95112015b2d4: Cope with submodules in build_index_from_tree.
Branches
Unknown
Tags
Unknown

Event Timeline