pull: use `other.url()` as the source of a bookmark pull
We want to move the bookmarks movement into `exchange.pull`, for this purpose we
need to stop relying on variables from `command.pull`.
--- a/mercurial/commands.py Tue Sep 30 17:13:54 2014 -0700
+++ b/mercurial/commands.py Fri Sep 26 10:59:29 2014 -0700
@@ -4961,7 +4961,7 @@
raise util.Abort(err)
modheads = repo.pull(other, heads=revs, force=opts.get('force'))
- bookmarks.updatefromremote(ui, repo, remotebookmarks, source)
+ bookmarks.updatefromremote(ui, repo, remotebookmarks, other.url())
# update specified bookmarks
if opts.get('bookmark'):
marks = repo._bookmarks