diff mercurial/utils/urlutil.py @ 49738:afcf59039b5d

path: clarify document of `get_clone_path` This return a url as `bytes`, not a `path` object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 03:51:27 +0100
parents f4626b74b941
children ffe8dd945f19
line wrap: on
line diff
--- a/mercurial/utils/urlutil.py	Fri Dec 02 06:52:27 2022 +0100
+++ b/mercurial/utils/urlutil.py	Fri Dec 02 03:51:27 2022 +0100
@@ -582,7 +582,7 @@
 
 
 def get_clone_path(ui, source, default_branches=()):
-    """return the `(origsource, path, branch)` selected as clone source"""
+    """return the `(origsource, url, branch)` selected as clone source"""
     urls = []
     if source is None:
         if b'default' in ui.paths: