Mercurial > public > mercurial-scm > hg
diff mercurial/bundle2.py @ 49648:9be765b82a90
typing: minor tweaks to allow updating to pytype 2022.11.18
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 23 Nov 2022 11:22:22 -0500 |
parents | 290c29df1915 |
children | 4188e75af983 |
line wrap: on
line diff
--- a/mercurial/bundle2.py Sun Nov 20 22:54:43 2022 -0500 +++ b/mercurial/bundle2.py Wed Nov 23 11:22:22 2022 -0500 @@ -1938,7 +1938,12 @@ raise error.Abort( _(b'old bundle types only supports v1 changegroups') ) + + # HG20 is the case without 2 values to unpack, but is handled above. + # pytype: disable=bad-unpacking header, comp = bundletypes[bundletype] + # pytype: enable=bad-unpacking + if comp not in util.compengines.supportedbundletypes: raise error.Abort(_(b'unknown stream compression type: %s') % comp) compengine = util.compengines.forbundletype(comp)