[PATCH 2 of 6] changegroup: document that 'source' parameter exists for extensions

Martin von Zweigbergk martinvonz at google.com
Fri May 1 17:50:40 CDT 2015


# HG changeset patch
# User Martin von Zweigbergk <martinvonz at google.com>
# Date 1430254159 25200
#      Tue Apr 28 13:49:19 2015 -0700
# Node ID 3d850e57e7bce831fc3791537eadf649aa009b67
# Parent  667a008d51ba2429f9b14618887ffe9e8cce6376
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 -r 667a008d51ba -r 3d850e57e7bc 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


More information about the Mercurial-devel mailing list