Show More
@@ -538,10 +538,12 b' def get_unique_push_path(action, repo, u' | |||||
538 | dests = list(get_push_paths(repo, ui, dests)) |
|
538 | dests = list(get_push_paths(repo, ui, dests)) | |
539 | if len(dests) != 1: |
|
539 | if len(dests) != 1: | |
540 | if dest is None: |
|
540 | if dest is None: | |
541 | msg = _("default path points to %d urls while %s only supports one") |
|
541 | msg = _( | |
|
542 | b"default path points to %d urls while %s only supports one" | |||
|
543 | ) | |||
542 | msg %= (len(dests), action) |
|
544 | msg %= (len(dests), action) | |
543 | else: |
|
545 | else: | |
544 | msg = _("path points to %d urls while %s only supports one: %s") |
|
546 | msg = _(b"path points to %d urls while %s only supports one: %s") | |
545 | msg %= (len(dests), action, dest) |
|
547 | msg %= (len(dests), action, dest) | |
546 | raise error.Abort(msg) |
|
548 | raise error.Abort(msg) | |
547 | return dests[0] |
|
549 | return dests[0] | |
@@ -577,10 +579,12 b' def get_unique_pull_path(action, repo, u' | |||||
577 | urls.append(source) |
|
579 | urls.append(source) | |
578 | if len(urls) != 1: |
|
580 | if len(urls) != 1: | |
579 | if source is None: |
|
581 | if source is None: | |
580 | msg = _("default path points to %d urls while %s only supports one") |
|
582 | msg = _( | |
|
583 | b"default path points to %d urls while %s only supports one" | |||
|
584 | ) | |||
581 | msg %= (len(urls), action) |
|
585 | msg %= (len(urls), action) | |
582 | else: |
|
586 | else: | |
583 | msg = _("path points to %d urls while %s only supports one: %s") |
|
587 | msg = _(b"path points to %d urls while %s only supports one: %s") | |
584 | msg %= (len(urls), action, source) |
|
588 | msg %= (len(urls), action, source) | |
585 | raise error.Abort(msg) |
|
589 | raise error.Abort(msg) | |
586 | return parseurl(urls[0], default_branches) |
|
590 | return parseurl(urls[0], default_branches) | |
@@ -609,11 +613,11 b' def get_clone_path(ui, source, default_b' | |||||
609 | if len(urls) != 1: |
|
613 | if len(urls) != 1: | |
610 | if source is None: |
|
614 | if source is None: | |
611 | msg = _( |
|
615 | msg = _( | |
612 | "default path points to %d urls while only one is supported" |
|
616 | b"default path points to %d urls while only one is supported" | |
613 | ) |
|
617 | ) | |
614 | msg %= len(urls) |
|
618 | msg %= len(urls) | |
615 | else: |
|
619 | else: | |
616 | msg = _("path points to %d urls while only one is supported: %s") |
|
620 | msg = _(b"path points to %d urls while only one is supported: %s") | |
617 | msg %= (len(urls), source) |
|
621 | msg %= (len(urls), source) | |
618 | raise error.Abort(msg) |
|
622 | raise error.Abort(msg) | |
619 | url = urls[0] |
|
623 | url = urls[0] |
General Comments 0
You need to be logged in to leave comments.
Login now