changeset 49698:c9690836747d

path: directly use the push_variant in `hg push` We don't need any extra processing now.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Thu, 01 Dec 2022 01:34:26 +0100
parents 1fae401b3b14
children 54e98a88542b
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Thu Dec 01 01:33:27 2022 +0100
+++ b/mercurial/commands.py	Thu Dec 01 01:34:26 2022 +0100
@@ -5766,7 +5766,7 @@
     some_pushed = False
     result = 0
     for path in urlutil.get_push_paths(repo, ui, dests):
-        dest = path.pushloc or path.loc
+        dest = path.loc
         branches = (path.branch, opts.get(b'branch') or [])
         ui.status(_(b'pushing to %s\n') % urlutil.hidepassword(dest))
         revs, checkout = hg.addbranchrevs(