changeset 49704:a7985c822c09

path: directly use the push_variant in `infinitepush` We don't need any extra processing now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 01 Dec 2022 01:38:33 +0100
parents b8385bbeefdc
children ec8140c44b14
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 01:38:07 2022 +0100
+++ b/hgext/infinitepush/__init__.py	Thu Dec 01 01:38:33 2022 +0100
@@ -849,7 +849,7 @@
             raise error.Abort(msg)
 
         path = paths[0]
-        destpath = path.pushloc or path.loc
+        destpath = path.loc
         # Remote scratch bookmarks will be deleted because remotenames doesn't
         # know about them. Let's save it before push and restore after
         remotescratchbookmarks = _readscratchremotebookmarks(ui, repo, destpath)