--- a/mercurial/exchange.py Thu Jan 28 13:49:05 2016 -0800
+++ b/mercurial/exchange.py Wed Jan 27 09:07:28 2016 -0800
@@ -707,7 +707,8 @@
pushop.outgoing)
else:
cgversions = [v for v in cgversions
- if v in changegroup.supportedversions(pushop.repo)]
+ if v in changegroup.supportedoutgoingversions(
+ pushop.repo)]
if not cgversions:
raise ValueError(_('no common changegroup version'))
version = max(cgversions)
@@ -1562,7 +1563,7 @@
getcgkwargs = {}
if cgversions: # 3.1 and 3.2 ship with an empty value
cgversions = [v for v in cgversions
- if v in changegroup.supportedversions(repo)]
+ if v in changegroup.supportedoutgoingversions(repo)]
if not cgversions:
raise ValueError(_('no common changegroup version'))
version = getcgkwargs['version'] = max(cgversions)