Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 49863: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 | ff7134e03629 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Dec 02 18:04:51 2022 +0100 +++ b/mercurial/localrepo.py Sat Dec 03 00:00:41 2022 +0100 @@ -304,12 +304,11 @@ '''peer for a local repo; reflects only the most recent API''' def __init__(self, repo, caps=None): - super(localpeer, self).__init__() + super(localpeer, self).__init__(repo.ui) if caps is None: caps = moderncaps.copy() self._repo = repo.filtered(b'served') - self.ui = repo.ui if repo._wanted_sidedata: formatted = bundle2.format_remote_wanted_sidedata(repo)