Mercurial > hg
comparison hgext/narrow/narrowrepo.py @ 49753:ff7134e03629
peer: have `repo.peer` take an optional `path` argument
We are ready to start to actually set the value now.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 00:16:07 +0100 |
parents | 6000f5b25c9b |
children | 3a2df812e1c7 |
comparison
equal
deleted
inserted
replaced
49752:611ccb631cbc | 49753:ff7134e03629 |
---|---|
17 class narrowrepository(repo.__class__): | 17 class narrowrepository(repo.__class__): |
18 def _makedirstate(self): | 18 def _makedirstate(self): |
19 dirstate = super(narrowrepository, self)._makedirstate() | 19 dirstate = super(narrowrepository, self)._makedirstate() |
20 return narrowdirstate.wrapdirstate(self, dirstate) | 20 return narrowdirstate.wrapdirstate(self, dirstate) |
21 | 21 |
22 def peer(self): | 22 def peer(self, path=None): |
23 peer = super(narrowrepository, self).peer() | 23 peer = super(narrowrepository, self).peer(path=path) |
24 peer._caps.add(wireprototypes.NARROWCAP) | 24 peer._caps.add(wireprototypes.NARROWCAP) |
25 peer._caps.add(wireprototypes.ELLIPSESCAP) | 25 peer._caps.add(wireprototypes.ELLIPSESCAP) |
26 return peer | 26 return peer |
27 | 27 |
28 repo.__class__ = narrowrepository | 28 repo.__class__ = narrowrepository |