changeset 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 f04d459909c6
children d4926e08507d
files mercurial/utils/urlutil.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py	Fri Dec 02 02:03:49 2022 +0100
+++ b/mercurial/utils/urlutil.py	Thu Dec 01 16:53:22 2022 +0100
@@ -545,7 +545,7 @@
 
 
 def get_unique_pull_path(action, repo, ui, source=None, default_branches=()):
-    """return a unique `(path, branch)` or abort if multiple are found
+    """return a unique `(url, branch)` or abort if multiple are found
 
     This is useful for command and action that does not support multiple
     destination (yet).