mercurial/cmdutil.py
changeset 4478 b2b55acbacdd
parent 4472 736e49292809
child 4522 591322269fed
equal deleted inserted replaced
4477:6cbfa740c129 4478:b2b55acbacdd
     8 from node import *
     8 from node import *
     9 from i18n import _
     9 from i18n import _
    10 import os, sys, mdiff, bdiff, util, templater, patch
    10 import os, sys, mdiff, bdiff, util, templater, patch
    11 
    11 
    12 revrangesep = ':'
    12 revrangesep = ':'
       
    13 
       
    14 def parseurl(url, revs):
       
    15     '''parse url#branch, returning url, branch + revs'''
       
    16 
       
    17     if '#' not in url:
       
    18         return url, (revs or None)
       
    19 
       
    20     url, rev = url.split('#', 1)
       
    21     return url, revs + [rev]
    13 
    22 
    14 def revpair(repo, revs):
    23 def revpair(repo, revs):
    15     '''return pair of nodes, given list of revisions. second item can
    24     '''return pair of nodes, given list of revisions. second item can
    16     be None, meaning use working dir.'''
    25     be None, meaning use working dir.'''
    17 
    26