Show More
@@ -51,13 +51,15 b' def addbranchrevs(lrepo, repo, branches,' | |||||
51 | revs.append(hashbranch) |
|
51 | revs.append(hashbranch) | |
52 | return revs, revs[0] |
|
52 | return revs, revs[0] | |
53 |
|
53 | |||
54 |
def parseurl( |
|
54 | def parseurl(path, branches=None): | |
55 | '''parse url#branch, returning (url, (branch, branches))''' |
|
55 | '''parse url#branch, returning (url, (branch, branches))''' | |
56 |
|
56 | |||
57 | if '#' not in url: |
|
57 | u = url.url(path) | |
58 | return url, (None, branches or []) |
|
58 | if not u.fragment: | |
59 | url, branch = url.split('#', 1) |
|
59 | return path, (None, branches or []) | |
60 | return url, (branch, branches or []) |
|
60 | branch = u.fragment | |
|
61 | u.fragment = None | |||
|
62 | return str(u), (branch, branches or []) | |||
61 |
|
63 | |||
62 | schemes = { |
|
64 | schemes = { | |
63 | 'bundle': bundlerepo, |
|
65 | 'bundle': bundlerepo, |
General Comments 0
You need to be logged in to leave comments.
Login now