# HG changeset patch # User Pierre-Yves David # Date 1670022830 -3600 # Node ID 611ccb631cbcb8c221a6918093ff9e9623997a1e # Parent a6e2a668c746e55506381a9cb4121fab753c351d peer: add a `path` attribute to peer It will start being set in the coming changesets. diff -r a6e2a668c746 -r 611ccb631cbc mercurial/interfaces/repository.py --- 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()