##// END OF EJS Templates
urlutil: inline the relevant part of `getpath` in `get_push_paths`...
marmoute -
r47792:fb7bee1e default draft
parent child Browse files
Show More
@@ -471,7 +471,15 b' def get_push_paths(repo, ui, dests):'
471 )
471 )
472 else:
472 else:
473 for dest in dests:
473 for dest in dests:
474 yield ui.getpath(dest)
474 if dest in ui.paths:
475 yield ui.paths[dest]
476 else:
477 path = try_path(ui, dest)
478 if path is None:
479 msg = _(b'repository %s does not exist')
480 msg %= dest
481 raise error.RepoError(msg)
482 yield path
475
483
476
484
477 def get_pull_paths(repo, ui, sources, default_branches=()):
485 def get_pull_paths(repo, ui, sources, default_branches=()):
General Comments 0
You need to be logged in to leave comments. Login now