equal
deleted
inserted
replaced
443 u = url(u) |
443 u = url(u) |
444 u.user = u.passwd = None |
444 u.user = u.passwd = None |
445 return bytes(u) |
445 return bytes(u) |
446 |
446 |
447 |
447 |
|
448 def parseurl(path, branches=None): |
|
449 '''parse url#branch, returning (url, (branch, branches))''' |
|
450 u = url(path) |
|
451 branch = None |
|
452 if u.fragment: |
|
453 branch = u.fragment |
|
454 u.fragment = None |
|
455 return bytes(u), (branch, branches or []) |
|
456 |
|
457 |
448 class paths(dict): |
458 class paths(dict): |
449 """Represents a collection of paths and their configs. |
459 """Represents a collection of paths and their configs. |
450 |
460 |
451 Data is initially derived from ui instances and the config files they have |
461 Data is initially derived from ui instances and the config files they have |
452 loaded. |
462 loaded. |