# HG changeset patch # User Pulkit Goyal <7895pulkit@gmail.com> # Date 2018-04-29 17:09:45 # Node ID bbdc1bc56e58e6577205c5f4bbee68de1ac3955e # Parent 5ac72e07692ac5363c3953c2ae63df63202a0139 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 diff --git a/mercurial/logexchange.py b/mercurial/logexchange.py --- a/mercurial/logexchange.py +++ b/mercurial/logexchange.py @@ -112,8 +112,8 @@ def activepath(repo, remote): # 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