commands: directly use exchange.pull
localrepo.pull is going away. See explanations in
4d52e6eb98ea.
--- a/mercurial/commands.py Fri Oct 03 11:07:47 2014 -0500
+++ b/mercurial/commands.py Fri Oct 03 11:11:12 2014 -0500
@@ -4960,8 +4960,9 @@
"so a rev cannot be specified.")
raise util.Abort(err)
- modheads = repo.pull(other, heads=revs, force=opts.get('force'),
- bookmarks=opts.get('bookmark', ()))
+ modheads = exchange.pull(repo, other, heads=revs,
+ force=opts.get('force'),
+ bookmarks=opts.get('bookmark', ())).cgresult
if checkout:
checkout = str(repo.changelog.rev(other.lookup(checkout)))
repo._subtoppath = source