comparison mercurial/logexchange.py @ 37365:1ccd75027abb

py3: use bytes instead of str in instance() We deal internally with bytes, so we should check whether the remote is a bytes or not. Differential Revision: https://phab.mercurial-scm.org/D3126
author Pulkit Goyal <7895pulkit@gmail.com>
date Thu, 05 Apr 2018 16:54:56 +0530
parents 62a428bf6359
children 0e50dda7e9c1
comparison
equal deleted inserted replaced
37364:1d26f745a10b 37365:1ccd75027abb
104 # determine the remote path from the repo, if possible; else just 104 # determine the remote path from the repo, if possible; else just
105 # use the string given to us 105 # use the string given to us
106 rpath = remote 106 rpath = remote
107 if local: 107 if local:
108 rpath = remote._repo.root 108 rpath = remote._repo.root
109 elif not isinstance(remote, str): 109 elif not isinstance(remote, bytes):
110 rpath = remote._url 110 rpath = remote._url
111 111
112 # represent the remotepath with user defined path name if exists 112 # represent the remotepath with user defined path name if exists
113 for path, url in repo.ui.configitems('paths'): 113 for path, url in repo.ui.configitems('paths'):
114 # remove auth info from user defined url 114 # remove auth info from user defined url