# HG changeset patch # User Augie Fackler # Date 1470334415 14400 # Node ID 43924f3a55fa5a3f0fb886d79693c7f9a446db92 # Parent 9e88077f972cac6be71532f661eb532c7bc222ae bundlerepo: use supportedincomingversions instead of allsupportedversions Since bundlerepo is really a pull-like operation, this is the correct method to use here. diff -r 9e88077f972c -r 43924f3a55fa mercurial/bundlerepo.py --- a/mercurial/bundlerepo.py Fri Aug 05 13:07:58 2016 -0400 +++ b/mercurial/bundlerepo.py Thu Aug 04 14:13:35 2016 -0400 @@ -290,7 +290,8 @@ "multiple changegroups") cgstream = part version = part.params.get('version', '01') - if version not in changegroup.allsupportedversions(ui): + legalcgvers = changegroup.supportedincomingversions(self) + if version not in legalcgvers: msg = _('Unsupported changegroup version: %s') raise error.Abort(msg % version) if self.bundle.compressed():