--- a/hgext/schemes.py Thu Oct 12 19:20:04 2017 -0700
+++ b/hgext/schemes.py Thu Oct 12 23:30:46 2017 -0700
@@ -116,7 +116,7 @@
schemes.update(dict(ui.configitems('schemes')))
t = templater.engine(lambda x: x)
for scheme, url in schemes.items():
- if (pycompat.osname == 'nt' and len(scheme) == 1 and scheme.isalpha()
+ if (pycompat.iswindows and len(scheme) == 1 and scheme.isalpha()
and os.path.exists('%s:\\' % scheme)):
raise error.Abort(_('custom scheme %s:// conflicts with drive '
'letter %s:\\\n') % (scheme, scheme.upper()))