mercurial/cmdutil.py
changeset 5236 cbe6e263357b
parent 5067 3d35c8cb5eb4
child 5241 5517aa5aafb0
--- a/mercurial/cmdutil.py
+++ b/mercurial/cmdutil.py
@@ -462,10 +462,10 @@ def parseurl(url, revs):
     '''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