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