# HG changeset patch # User Bryan O'Sullivan # Date 2008-04-12 05:19:51 # Node ID a020247d75e5ad770e888863189f60dc55466d05 # Parent 23ef198efce9c43ff7240e4fe97a98a8fe57b206 parseurl: make revs optional diff --git a/mercurial/hg.py b/mercurial/hg.py --- a/mercurial/hg.py +++ b/mercurial/hg.py @@ -16,7 +16,7 @@ def _local(path): 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: