changeset 6521:a020247d75e5

parseurl: make revs optional
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 11 Apr 2008 22:19:51 -0700 (2008-04-12)
parents 23ef198efce9
children cfeeac24fc1e
files mercurial/hg.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -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: