path: directly use the push_variant in `infinitepush`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Dec 2022 01:38:33 +0100
changeset 49816 a7985c822c09
parent 49815 b8385bbeefdc
child 49817 ec8140c44b14
path: directly use the push_variant in `infinitepush` We don't need any extra processing now.
hgext/infinitepush/__init__.py
--- 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)