# HG changeset patch # User Pierre-Yves David # Date 1411634486 25200 # Node ID ce95c15f680b746da98804de236b4f338f6590a2 # Parent 1625770c2ce1923e5ed49148488da499258f77a7 clone: use `exchange.push` instead of `localrepo.push` The latter is going away. diff -r 1625770c2ce1 -r ce95c15f680b mercurial/hg.py --- a/mercurial/hg.py Thu Sep 25 01:39:39 2014 -0700 +++ b/mercurial/hg.py Thu Sep 25 01:41:26 2014 -0700 @@ -11,7 +11,7 @@ from node import hex, nullid import localrepo, bundlerepo, unionrepo, httppeer, sshpeer, statichttprepo import bookmarks, lock, util, extensions, error, node, scmutil, phases, url -import cmdutil, discovery, repoview +import cmdutil, discovery, repoview, exchange import merge as mergemod import verify as verifymod import errno, os, shutil @@ -408,7 +408,7 @@ if destpeer.local(): destpeer.local().clone(srcpeer, heads=revs, stream=stream) elif srcrepo: - srcrepo.push(destpeer, revs=revs) + exchange.push(srcrepo, destpeer, revs=revs) else: raise util.Abort(_("clone from remote to remote not supported"))