changeset 29706:7f6130c7ffe1

wirepeer: rename confusing `source` parameter It's named "url" everyplace else this method is defined, so let's be consistent.
author Augie Fackler <augie@google.com>
date Fri, 05 Aug 2016 16:34:30 -0400
parents 41689e293994
children a1082645d623
files mercurial/wireproto.py
diffstat 1 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/wireproto.py	Fri Aug 05 13:44:17 2016 +0200
+++ b/mercurial/wireproto.py	Fri Aug 05 16:34:30 2016 -0400
@@ -399,7 +399,7 @@
         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 @@
         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',