changeset 38024:bbdc1bc56e58

remotenames: check the remotepath with url containing user information too Current logic to match a remotepatch to a user defined path first removes the authentication information from the url and then tries to match it. However this is not true every time. If we clone a repo using ssh, the default path contains the user information too. Differential Revision: https://phab.mercurial-scm.org/D3518
author Pulkit Goyal <7895pulkit@gmail.com>
date Sun, 29 Apr 2018 22:39:45 +0530
parents 5ac72e07692a
children 7465b908d305
files mercurial/logexchange.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/logexchange.py	Fri May 11 09:16:26 2018 -0700
+++ b/mercurial/logexchange.py	Sun Apr 29 22:39:45 2018 +0530
@@ -112,8 +112,8 @@
     # represent the remotepath with user defined path name if exists
     for path, url in repo.ui.configitems('paths'):
         # remove auth info from user defined url
-        url = util.removeauth(url)
-        if url == rpath:
+        noauthurl = util.removeauth(url)
+        if url == rpath or noauthurl == rpath:
             rpath = path
             break