mercurial/cmdutil.py
changeset 5184 92236732d5a1
parent 5068 d5126a0172ba
child 5185 18a9fbb5cd78
equal deleted inserted replaced
5183:664a1c312972 5184:92236732d5a1
   457     if opts.get('ssh'):
   457     if opts.get('ssh'):
   458         ui.setconfig("ui", "ssh", opts['ssh'])
   458         ui.setconfig("ui", "ssh", opts['ssh'])
   459     if opts.get('remotecmd'):
   459     if opts.get('remotecmd'):
   460         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
   460         ui.setconfig("ui", "remotecmd", opts['remotecmd'])
   461 
   461 
   462 def parseurl(url, revs):
       
   463     '''parse url#branch, returning url, branch + revs'''
       
   464 
       
   465     if '#' not in url:
       
   466         return url, (revs or None)
       
   467 
       
   468     url, rev = url.split('#', 1)
       
   469     return url, revs + [rev]
       
   470 
       
   471 def revpair(repo, revs):
   462 def revpair(repo, revs):
   472     '''return pair of nodes, given list of revisions. second item can
   463     '''return pair of nodes, given list of revisions. second item can
   473     be None, meaning use working dir.'''
   464     be None, meaning use working dir.'''
   474 
   465 
   475     def revfix(repo, val, defval):
   466     def revfix(repo, val, defval):