Mercurial > hg > mercurial-source
diff hgext/fetch.py @ 22697:6ea41d41aba1
fetch: use exchange.pull
localrepo.pull is going away. See 4d52e6eb98ea for details.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 11:16:57 -0500 (2014-10-03) |
parents | a014fdc97154 |
children | f1eaf03dd608 |
line wrap: on
line diff
--- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -11,6 +11,7 @@ from mercurial.node import short from mercurial import commands, cmdutil, hg, util, error from mercurial.lock import release +from mercurial import exchange cmdtable = {} command = cmdutil.command(cmdtable) @@ -84,7 +85,7 @@ raise util.Abort(err) # Are there any changes at all? - modheads = repo.pull(other, heads=revs) + modheads = exchange.pull(repo, other, heads=revs).cgresult if modheads == 0: return 0