changegroup: document that 'source' parameter exists for extensions
authorMartin von Zweigbergk <martinvonz@google.com>
Tue, 28 Apr 2015 13:49:19 -0700
changeset 24897 5c35a6040352
parent 24896 9183cb6886ef
child 24898 0bbf061564cf
changegroup: document that 'source' parameter exists for extensions The 'source' parameter passed to generatefiles() is unused by the method itself, but Durham says it is used by an extension.
mercurial/changegroup.py
--- a/mercurial/changegroup.py	Tue Apr 28 13:40:00 2015 -0700
+++ b/mercurial/changegroup.py	Tue Apr 28 13:49:19 2015 -0700
@@ -440,6 +440,7 @@
         if clnodes:
             repo.hook('outgoing', node=hex(clnodes[0]), source=source)
 
+    # The 'source' parameter is useful for extensions
     def generatefiles(self, changedfiles, linknodes, commonrevs, source):
         repo = self._repo
         progress = self._progress