path: directly use the push_variant in `hg push`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 01 Dec 2022 01:34:26 +0100
changeset 49698 c9690836747d
parent 49697 1fae401b3b14
child 49699 54e98a88542b
path: directly use the push_variant in `hg push` We don't need any extra processing now.
mercurial/commands.py
--- 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(