Mercurial > hg
diff mercurial/hg.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 | 8a38cd76588f |
children | be3fcd9e5e52 |
line wrap: on
line diff
--- a/mercurial/hg.py Sat Dec 03 03:45:39 2022 +0100 +++ b/mercurial/hg.py Sat Dec 03 03:45:45 2022 +0100 @@ -723,8 +723,6 @@ srcpeer = source branches = (None, branch or []) # XXX path: simply use the peer `path` object when this become available - srcpeer = source.peer() # in case we were called with a localrepo - branches = (None, branch or []) origsource = source = srcpeer.url() srclock = destlock = destwlock = cleandir = None destpeer = None