diff mercurial/hg.py @ 49755:2d11a98db799

peer: store the path object used to build a peer from a repo This is the simplest case, we so starts with it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Sat, 03 Dec 2022 00:19:23 +0100
parents ec30fe6917ec
children 5f71fff8dc74
line wrap: on
line diff
--- a/mercurial/hg.py	Fri Dec 02 17:41:44 2022 +0100
+++ b/mercurial/hg.py	Sat Dec 03 00:19:23 2022 +0100
@@ -274,7 +274,7 @@
             intents=intents,
             createopts=createopts,
         )
-        peer = repo.peer()
+        peer = repo.peer(path=peer_path)
     return peer