Mercurial > public > mercurial-scm > hg
diff mercurial/interfaces/repository.py @ 49748:78af51ba73c5
peer: stop having a `peer()` method on `peer()`
This is already a peer, why do you want a peer if you already have one.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sat, 03 Dec 2022 03:45:45 +0100 |
parents | 642e31cb55f0 |
children | a6e2a668c746 |
line wrap: on
line diff
--- a/mercurial/interfaces/repository.py Sat Dec 03 03:45:39 2022 +0100 +++ b/mercurial/interfaces/repository.py Sat Dec 03 03:45:45 2022 +0100 @@ -123,12 +123,6 @@ can be used to interface with it. Otherwise returns ``None``. """ - def peer(): - """Returns an object conforming to this interface. - - Most implementations will ``return self``. - """ - def canpush(): """Returns a boolean indicating if this peer can be pushed to."""