Mercurial > hg
comparison mercurial/hg.py @ 37261:3809eafedf2c
parseurl: consistently call second output "branches"
Differential Revision: https://phab.mercurial-scm.org/D3015
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Sun, 01 Apr 2018 15:41:16 -0700 |
parents | 6f570c501e3e |
children | 54435fd09f1d |
comparison
equal
deleted
inserted
replaced
37260:8e57c3b0dce4 | 37261:3809eafedf2c |
---|---|
528 remote's path/URL. Defaults to "identity." | 528 remote's path/URL. Defaults to "identity." |
529 """ | 529 """ |
530 | 530 |
531 if isinstance(source, bytes): | 531 if isinstance(source, bytes): |
532 origsource = ui.expandpath(source) | 532 origsource = ui.expandpath(source) |
533 source, branch = parseurl(origsource, branch) | 533 source, branches = parseurl(origsource, branch) |
534 srcpeer = peer(ui, peeropts, source) | 534 srcpeer = peer(ui, peeropts, source) |
535 else: | 535 else: |
536 srcpeer = source.peer() # in case we were called with a localrepo | 536 srcpeer = source.peer() # in case we were called with a localrepo |
537 branch = (None, branch or []) | 537 branches = (None, branch or []) |
538 origsource = source = srcpeer.url() | 538 origsource = source = srcpeer.url() |
539 rev, checkout = addbranchrevs(srcpeer, srcpeer, branch, rev) | 539 rev, checkout = addbranchrevs(srcpeer, srcpeer, branches, rev) |
540 | 540 |
541 if dest is None: | 541 if dest is None: |
542 dest = defaultdest(source) | 542 dest = defaultdest(source) |
543 if dest: | 543 if dest: |
544 ui.status(_("destination directory: %s\n") % dest) | 544 ui.status(_("destination directory: %s\n") % dest) |