Submitter | phabricator |
---|---|
Date | March 12, 2021, 6:09 p.m. |
Message ID | <differential-rev-PHID-DREV-dvy3ayns3nmprq3mvwxp-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/48497/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -1876,7 +1876,12 @@ if info.issym(): data = info.linkname else: - data = tar.extractfile(info).read() + f = tar.extractfile(info) + if f: + data = f.read() + else: + self.ui.warn(_(b'skipping "%s" (unknown type)') % bname) + continue archiver.addfile(prefix + bname, info.mode, info.issym(), data) total += 1 progress.increment()