mercurial/hg.py
changeset 48528 75fc2537d93c
parent 48494 b74ee41addee
child 48569 f13fb742e1d8
equal deleted inserted replaced
48527:bf5dc156bb4c 48528:75fc2537d93c
   127             raise error.RepoLookupError(_(b"unknown branch '%s'") % branch)
   127             raise error.RepoLookupError(_(b"unknown branch '%s'") % branch)
   128     if hashbranch:
   128     if hashbranch:
   129         if not primary(hashbranch):
   129         if not primary(hashbranch):
   130             revs.append(hashbranch)
   130             revs.append(hashbranch)
   131     return revs, revs[0]
   131     return revs, revs[0]
   132 
       
   133 
       
   134 def parseurl(path, branches=None):
       
   135     '''parse url#branch, returning (url, (branch, branches))'''
       
   136     msg = b'parseurl(...) moved to mercurial.utils.urlutil'
       
   137     util.nouideprecwarn(msg, b'6.0', stacklevel=2)
       
   138     return urlutil.parseurl(path, branches=branches)
       
   139 
   132 
   140 
   133 
   141 schemes = {
   134 schemes = {
   142     b'bundle': bundlerepo,
   135     b'bundle': bundlerepo,
   143     b'union': unionrepo,
   136     b'union': unionrepo,