Mercurial > hg-stable
changeset 29726:43924f3a55fa
bundlerepo: use supportedincomingversions instead of allsupportedversions
Since bundlerepo is really a pull-like operation, this is the correct
method to use here.
author | Augie Fackler <augie@google.com> |
---|---|
date | Thu, 04 Aug 2016 14:13:35 -0400 |
parents | 9e88077f972c |
children | 69109052d9ac |
files | mercurial/bundlerepo.py |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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():