Show More
@@ -22,10 +22,10 b' def parseurl(url, revs=[]):' | |||
|
22 | 22 | '''parse url#branch, returning url, branch + revs''' |
|
23 | 23 | |
|
24 | 24 | if '#' not in url: |
|
25 |
return url, (revs or None), revs and revs[ |
|
|
25 | return url, (revs or None), revs and revs[0] or None | |
|
26 | 26 | |
|
27 | 27 | url, branch = url.split('#', 1) |
|
28 |
checkout = revs and revs[ |
|
|
28 | checkout = revs and revs[0] or branch | |
|
29 | 29 | return url, (revs or []) + [branch], checkout |
|
30 | 30 | |
|
31 | 31 | schemes = { |
@@ -188,7 +188,7 b' def clone(ui, source, dest=None, pull=Fa' | |||
|
188 | 188 | else: |
|
189 | 189 | src_repo = source |
|
190 | 190 | origsource = source = src_repo.url() |
|
191 |
checkout = rev and rev[ |
|
|
191 | checkout = rev and rev[0] or None | |
|
192 | 192 | |
|
193 | 193 | if dest is None: |
|
194 | 194 | dest = defaultdest(source) |
General Comments 0
You need to be logged in to leave comments.
Login now