Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 5177:92236732d5a1
move parseurl from cmdutil to hg
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Wed, 15 Aug 2007 16:10:36 -0500 |
parents | d5126a0172ba |
children | 18a9fbb5cd78 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Wed Aug 15 16:10:24 2007 -0500 +++ b/mercurial/cmdutil.py Wed Aug 15 16:10:36 2007 -0500 @@ -459,15 +459,6 @@ if opts.get('remotecmd'): ui.setconfig("ui", "remotecmd", opts['remotecmd']) -def parseurl(url, revs): - '''parse url#branch, returning url, branch + revs''' - - if '#' not in url: - return url, (revs or None) - - url, rev = url.split('#', 1) - return url, revs + [rev] - def revpair(repo, revs): '''return pair of nodes, given list of revisions. second item can be None, meaning use working dir.'''