##// END OF EJS Templates
schemes: fix a broken check for drive letter conflicts...
Matt Harbison -
r50745:bcc45b33 default
parent child Browse files
Show More
@@ -135,7 +135,7 b' schemes = {'
135 }
135 }
136
136
137
137
138 def _check_drive_letter(scheme):
138 def _check_drive_letter(scheme: bytes) -> None:
139 """check if a scheme conflict with a Windows drive letter"""
139 """check if a scheme conflict with a Windows drive letter"""
140 if (
140 if (
141 pycompat.iswindows
141 pycompat.iswindows
@@ -152,7 +152,7 b' def extsetup(ui):'
152 schemes.update(dict(ui.configitems(b'schemes')))
152 schemes.update(dict(ui.configitems(b'schemes')))
153 t = templater.engine(templater.parse)
153 t = templater.engine(templater.parse)
154 for scheme, url in schemes.items():
154 for scheme, url in schemes.items():
155 _check_drive_letter(schemes)
155 _check_drive_letter(scheme)
156 url_scheme = urlutil.url(url).scheme
156 url_scheme = urlutil.url(url).scheme
157 if url_scheme in hg.peer_schemes:
157 if url_scheme in hg.peer_schemes:
158 hg.peer_schemes[scheme] = ShortRepository(url, scheme, t)
158 hg.peer_schemes[scheme] = ShortRepository(url, scheme, t)
General Comments 0
You need to be logged in to leave comments. Login now