comparison mercurial/hg.py @ 6525:a020247d75e5

parseurl: make revs optional
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 11 Apr 2008 22:19:51 -0700
parents 23ef198efce9
children cfeeac24fc1e
comparison
equal deleted inserted replaced
6524:23ef198efce9 6525:a020247d75e5
14 14
15 def _local(path): 15 def _local(path):
16 return (os.path.isfile(util.drop_scheme('file', path)) and 16 return (os.path.isfile(util.drop_scheme('file', path)) and
17 bundlerepo or localrepo) 17 bundlerepo or localrepo)
18 18
19 def parseurl(url, revs): 19 def parseurl(url, revs=[]):
20 '''parse url#branch, returning url, branch + revs''' 20 '''parse url#branch, returning url, branch + revs'''
21 21
22 if '#' not in url: 22 if '#' not in url:
23 return url, (revs or None), None 23 return url, (revs or None), None
24 24