Mercurial > hg-stable
changeset 24897:5c35a6040352
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.
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Tue, 28 Apr 2015 13:49:19 -0700 |
parents | 9183cb6886ef |
children | 0bbf061564cf |
files | mercurial/changegroup.py |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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