Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- 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: