hgext/schemes.py
changeset 50791 d51a76b5262b
parent 49850 bcc45b33efb2
equal deleted inserted replaced
50790:5ac5f16277a9 50791:d51a76b5262b
   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)
   159         else:
   159         else:
   160             hg.repo_schemes[scheme] = ShortRepository(url, scheme, t)
   160             hg.repo_schemes[scheme] = ShortRepository(url, scheme, t)
   161 
   161 
   162     extensions.wrapfunction(urlutil, b'hasdriveletter', hasdriveletter)
   162     extensions.wrapfunction(urlutil, 'hasdriveletter', hasdriveletter)
   163 
   163 
   164 
   164 
   165 @command(b'debugexpandscheme', norepo=True)
   165 @command(b'debugexpandscheme', norepo=True)
   166 def expandscheme(ui, url, **opts):
   166 def expandscheme(ui, url, **opts):
   167     """given a repo path, provide the scheme-expanded path"""
   167     """given a repo path, provide the scheme-expanded path"""