Mercurial > public > mercurial-scm > hg
diff mercurial/interfaces/repository.py @ 49751:a6e2a668c746
peer: have a common constructor and use it
For now it does not do much, but we will extend it to also store a path object
soon.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 00:00:41 +0100 |
parents | 78af51ba73c5 |
children | 611ccb631cbc |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Fri Dec 02 18:04:51 2022 +0100 +++ b/mercurial/interfaces/repository.py Sat Dec 03 00:00:41 2022 +0100 @@ -387,6 +387,12 @@ limitedarguments = False + def __init__( + self, + ui, + ): + self.ui = ui + def capable(self, name): caps = self.capabilities() if name in caps: