# HG changeset patch # User Pierre-Yves David # Date 1669995403 -3600 # Node ID 30eb36d93072c72a4918bea60db9b5499bb4c4ba # Parent 2aaa5d1e57e9e103b3a5ec7febe7081c7490db00 path: use `get_clone_path_obj` in _getlocal We don't need to feed the `path` object to a `peer` object, but using an higher level function is simpler here (e.g. no subscript access, explicit attribute access). diff -r 2aaa5d1e57e9 -r 30eb36d93072 mercurial/dispatch.py --- a/mercurial/dispatch.py Fri Dec 02 16:34:00 2022 +0100 +++ b/mercurial/dispatch.py Fri Dec 02 16:36:43 2022 +0100 @@ -980,7 +980,8 @@ lui.readconfig(os.path.join(path, b".hg", b"hgrc-not-shared"), path) if rpath: - path = urlutil.get_clone_path(lui, rpath)[0] + path_obj = urlutil.get_clone_path_obj(lui, rpath) + path = path_obj.rawloc lui = ui.copy() if rcutil.use_repo_hgrc(): _readsharedsourceconfig(lui, path)