Patchwork D3518: remotenames: check the remotepath with url containing user information too

login
register
mail settings
Submitter phabricator
Date May 12, 2018, 2:54 a.m.
Message ID <7e0945e66b3e08d0f609abf2b6af65fc@localhost.localdomain>
Download mbox | patch
Permalink /patch/31527/
State Not Applicable
Headers show

Comments

phabricator - May 12, 2018, 2:54 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbbdc1bc56e58: remotenames: check the remotepath with url containing user information too (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3518?vs=8611&id=8649

REVISION DETAIL
  https://phab.mercurial-scm.org/D3518

AFFECTED FILES
  mercurial/logexchange.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/logexchange.py b/mercurial/logexchange.py
--- a/mercurial/logexchange.py
+++ b/mercurial/logexchange.py
@@ -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