# HG changeset patch # User Augie Fackler # Date 2016-08-05 20:34:30 # Node ID 7f6130c7ffe1bc42daebc03935c7cc428dbd5bc1 # Parent 41689e2939940b8f0399b810cd26251caea38dde wirepeer: rename confusing `source` parameter It's named "url" everyplace else this method is defined, so let's be consistent. diff --git a/mercurial/wireproto.py b/mercurial/wireproto.py --- a/mercurial/wireproto.py +++ b/mercurial/wireproto.py @@ -399,7 +399,7 @@ class wirepeer(peer.peerrepository): else: return changegroupmod.cg1unpacker(f, 'UN') - def unbundle(self, cg, heads, source): + def unbundle(self, cg, heads, url): '''Send cg (a readable file-like object representing the changegroup to push, typically a chunkbuffer object) to the remote server as a bundle. @@ -407,7 +407,11 @@ class wirepeer(peer.peerrepository): When pushing a bundle10 stream, return an integer indicating the result of the push (see localrepository.addchangegroup()). - When pushing a bundle20 stream, return a bundle20 stream.''' + When pushing a bundle20 stream, return a bundle20 stream. + + `url` is the url the client thinks it's pushing to, which is + visible to hooks. + ''' if heads != ['force'] and self.capable('unbundlehash'): heads = encodelist(['hashed',