Mercurial > public > mercurial-scm > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
49754:ec30fe6917ec | 49755:2d11a98db799 |
---|---|
272 repo_path, | 272 repo_path, |
273 create, | 273 create, |
274 intents=intents, | 274 intents=intents, |
275 createopts=createopts, | 275 createopts=createopts, |
276 ) | 276 ) |
277 peer = repo.peer() | 277 peer = repo.peer(path=peer_path) |
278 return peer | 278 return peer |
279 | 279 |
280 | 280 |
281 def defaultdest(source): | 281 def defaultdest(source): |
282 """return default destination of clone if none is given | 282 """return default destination of clone if none is given |