Show More
@@ -538,10 +538,12 b' def get_unique_push_path(action, repo, u' | |||
|
538 | 538 | dests = list(get_push_paths(repo, ui, dests)) |
|
539 | 539 | if len(dests) != 1: |
|
540 | 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 | 544 | msg %= (len(dests), action) |
|
543 | 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 | 547 | msg %= (len(dests), action, dest) |
|
546 | 548 | raise error.Abort(msg) |
|
547 | 549 | return dests[0] |
@@ -577,10 +579,12 b' def get_unique_pull_path(action, repo, u' | |||
|
577 | 579 | urls.append(source) |
|
578 | 580 | if len(urls) != 1: |
|
579 | 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 | 585 | msg %= (len(urls), action) |
|
582 | 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 | 588 | msg %= (len(urls), action, source) |
|
585 | 589 | raise error.Abort(msg) |
|
586 | 590 | return parseurl(urls[0], default_branches) |
@@ -609,11 +613,11 b' def get_clone_path(ui, source, default_b' | |||
|
609 | 613 | if len(urls) != 1: |
|
610 | 614 | if source is None: |
|
611 | 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 | 618 | msg %= len(urls) |
|
615 | 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 | 621 | msg %= (len(urls), source) |
|
618 | 622 | raise error.Abort(msg) |
|
619 | 623 | url = urls[0] |
General Comments 0
You need to be logged in to leave comments.
Login now