Mercurial > public > mercurial-scm > hg
diff mercurial/cmdutil.py @ 5222:cbe6e263357b
parseurl: also return the revision after the "#"; add a test
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Mon, 27 Aug 2007 01:44:35 -0300 |
parents | 3d35c8cb5eb4 |
children | 5517aa5aafb0 |
line wrap: on
line diff
--- a/mercurial/cmdutil.py Mon Aug 27 01:44:35 2007 -0300 +++ b/mercurial/cmdutil.py Mon Aug 27 01:44:35 2007 -0300 @@ -462,10 +462,10 @@ '''parse url#branch, returning url, branch + revs''' if '#' not in url: - return url, (revs or None) + return url, (revs or None), None url, rev = url.split('#', 1) - return url, revs + [rev] + return url, revs + [rev], rev def revpair(repo, revs): '''return pair of nodes, given list of revisions. second item can