path: pass `path` to `peer` in `hg bundle`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Dec 2022 01:57:14 +0100
changeset 49708 0df2cff04291
parent 49707 aa36771ef505
child 49709 459e311f5581
path: pass `path` to `peer` in `hg bundle` We directly use the `path` object to build the `peer` object.
mercurial/commands.py
--- a/mercurial/commands.py	Wed Nov 30 19:43:26 2022 +0100
+++ b/mercurial/commands.py	Thu Dec 01 01:57:14 2022 +0100
@@ -1635,7 +1635,7 @@
         missing = set()
         excluded = set()
         for path in urlutil.get_push_paths(repo, ui, dests):
-            other = hg.peer(repo, opts, path.rawloc)
+            other = hg.peer(repo, opts, path)
             if revs is not None:
                 hex_revs = [repo[r].hex() for r in revs]
             else: