##// END OF EJS Templates
urlutil: remove usage of `ui.expandpath` in `get_unique_pull_path`...
marmoute -
r47725:0d8541e5 default
parent child Browse files
Show More
@@ -509,8 +509,22 b' def get_unique_pull_path(action, repo, u'
509 The `action` parameter will be used for the error message.
509 The `action` parameter will be used for the error message.
510 """
510 """
511 if source is None:
511 if source is None:
512 source = b'default'
512 if b'default' in ui.paths:
513 url = ui.expandpath(source)
513 url = ui.paths[b'default'].rawloc
514 else:
515 # XXX this is the historical default behavior, but that is not
516 # great, consider breaking BC on this.
517 url = b'default'
518 else:
519 if source in ui.paths:
520 url = ui.paths[source].rawloc
521 else:
522 # Try to resolve as a local path or URI.
523 try:
524 # we pass the ui instance are warning might need to be issued
525 url = path(ui, None, rawloc=source).rawloc
526 except ValueError:
527 url = source
514 return parseurl(url, default_branches)
528 return parseurl(url, default_branches)
515
529
516
530
General Comments 0
You need to be logged in to leave comments. Login now