parseurl: make revs optional
authorBryan O'Sullivan <bos@serpentine.com>
Fri, 11 Apr 2008 22:19:51 -0700
changeset 6525 a020247d75e5
parent 6524 23ef198efce9
child 6526 cfeeac24fc1e
parseurl: make revs optional
mercurial/hg.py
--- a/mercurial/hg.py	Fri Apr 11 22:18:38 2008 -0700
+++ b/mercurial/hg.py	Fri Apr 11 22:19:51 2008 -0700
@@ -16,7 +16,7 @@
     return (os.path.isfile(util.drop_scheme('file', path)) and
             bundlerepo or localrepo)
 
-def parseurl(url, revs):
+def parseurl(url, revs=[]):
     '''parse url#branch, returning url, branch + revs'''
 
     if '#' not in url: