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 get_push_paths(repo, ui, dests): |
|
449 """yields all the `path` selected as push destination by `dests`""" |
|
450 if not dests: |
|
451 dests = [None] |
|
452 for dest in dests: |
|
453 yield ui.getpath(dest, default=(b'default-push', b'default')) |
|
454 |
|
455 |
448 def parseurl(path, branches=None): |
456 def parseurl(path, branches=None): |
449 '''parse url#branch, returning (url, (branch, branches))''' |
457 '''parse url#branch, returning (url, (branch, branches))''' |
450 u = url(path) |
458 u = url(path) |
451 branch = None |
459 branch = None |
452 if u.fragment: |
460 if u.fragment: |