diff hgext/hooklib/reject_merge_commits.py @ 46694:d6601547f22b stable

subrepo: handle unexpected file types from git gracefully This was flagged by pytype because `tar.extractfile(...)` can return None if the entry is not a file or symlink. I don't think that git supports other types, but better safe than sorry. Differential Revision: https://phab.mercurial-scm.org/D10179
author Matt Harbison <matt_harbison@yahoo.com>
date Thu, 11 Mar 2021 19:21:58 -0500
parents 4cabeea6d214
children 6000f5b25c9b
line wrap: on
line diff