Mercurial > hg
changeset 49752:611ccb631cbc
peer: add a `path` attribute to peer
It will start being set in the coming changesets.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 00:13:50 +0100 |
parents | a6e2a668c746 |
children | ff7134e03629 |
files | mercurial/interfaces/repository.py |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Sat Dec 03 00:00:41 2022 +0100 +++ b/mercurial/interfaces/repository.py Sat Dec 03 00:13:50 2022 +0100 @@ -103,6 +103,7 @@ """ ui = interfaceutil.Attribute("""ui.ui instance""") + path = interfaceutil.Attribute("""a urlutil.path instance or None""") def url(): """Returns a URL string representing this peer. @@ -387,11 +388,9 @@ limitedarguments = False - def __init__( - self, - ui, - ): + def __init__(self, ui, path=None): self.ui = ui + self.path = path def capable(self, name): caps = self.capabilities()