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

login
register
mail settings
Submitter Martin von Zweigbergk
Date May 1, 2015, 10:50 p.m.
Message ID <3d850e57e7bce831fc37.1430520640@martinvonz.mtv.corp.google.com>
Download mbox | patch
Permalink /patch/8828/
State Accepted
Headers show

Comments

Martin von Zweigbergk - May 1, 2015, 10:50 p.m.
# HG changeset patch
# User Martin von Zweigbergk <martinvonz@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.

Patch

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