changeset 49713:6f89a1d74511

path: pass `path` to `peer` in infinite push We directly use the `path` object to build the `peer` object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 01 Dec 2022 02:26:34 +0100
parents 905eb32fdf4e
children f04d459909c6
files hgext/infinitepush/__init__.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/infinitepush/__init__.py	Thu Dec 01 02:21:18 2022 +0100
+++ b/hgext/infinitepush/__init__.py	Thu Dec 01 02:26:34 2022 +0100
@@ -856,7 +856,7 @@
         result = orig(ui, repo, *dests, **pycompat.strkwargs(opts))
         if common.isremotebooksenabled(ui):
             if bookmark and scratchpush:
-                other = hg.peer(repo, opts, destpath)
+                other = hg.peer(repo, opts, path)
                 try:
                     fetchedbookmarks = other.listkeyspatterns(
                         b'bookmarks', patterns=[bookmark]