--- a/mercurial/exchange.py Fri Oct 15 02:44:14 2021 +0200
+++ b/mercurial/exchange.py Fri Oct 15 03:28:28 2021 +0200
@@ -1378,6 +1378,7 @@
self,
repo,
remote,
+ path,
heads=None,
force=False,
bookmarks=(),
@@ -1391,6 +1392,10 @@
self.repo = repo
# repo we pull from
self.remote = remote
+ # path object used to build this remote
+ #
+ # Ideally, the remote peer would carry that directly.
+ self.remote_path = path
# revision we try to pull (None is "all")
self.heads = heads
# bookmark pulled explicitly
@@ -1556,6 +1561,7 @@
def pull(
repo,
remote,
+ path=None,
heads=None,
force=False,
bookmarks=(),
@@ -1611,8 +1617,9 @@
pullop = pulloperation(
repo,
remote,
- heads,
- force,
+ path=path,
+ heads=heads,
+ force=force,
bookmarks=bookmarks,
streamclonerequested=streamclonerequested,
includepats=includepats,