Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/utils/urlutil.py @ 49827:ce5f49e8d6ed
path: update `get_unique_pull_path` to point out it returns a url
Unlike other functions in this module it returns a url as `bytes` and
not a `path` object. Let us point it out in the doc.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Thu, 01 Dec 2022 16:53:22 +0100 |
parents | f27fbb908b10 |
children | d4926e08507d |
comparison
equal
deleted
inserted
replaced
49826:f04d459909c6 | 49827:ce5f49e8d6ed |
---|---|
543 raise error.Abort(msg) | 543 raise error.Abort(msg) |
544 return dests[0] | 544 return dests[0] |
545 | 545 |
546 | 546 |
547 def get_unique_pull_path(action, repo, ui, source=None, default_branches=()): | 547 def get_unique_pull_path(action, repo, ui, source=None, default_branches=()): |
548 """return a unique `(path, branch)` or abort if multiple are found | 548 """return a unique `(url, branch)` or abort if multiple are found |
549 | 549 |
550 This is useful for command and action that does not support multiple | 550 This is useful for command and action that does not support multiple |
551 destination (yet). | 551 destination (yet). |
552 | 552 |
553 Note that for now, we cannot get multiple destination so this function is "trivial". | 553 Note that for now, we cannot get multiple destination so this function is "trivial". |