# HG changeset patch # User Martin von Zweigbergk # Date 2015-04-28 20:49:19 # Node ID 5c35a604035284c8062d110a768343a7dcec7158 # Parent 9183cb6886efe83f6e34b716e7c865b71f252bd9 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. diff --git a/mercurial/changegroup.py b/mercurial/changegroup.py --- a/mercurial/changegroup.py +++ b/mercurial/changegroup.py @@ -440,6 +440,7 @@ class cg1packer(object): 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