Patchwork D2993: bundle2: add 'source' atrribute to bundleoperation class

login
register
mail settings
Submitter phabricator
Date March 31, 2018, 5:18 p.m.
Message ID <39635e8cb5fd60d2019eee410661a7db@localhost.localdomain>
Download mbox | patch
Permalink /patch/30068/
State Not Applicable
Headers show

Comments

phabricator - March 31, 2018, 5:18 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG7e906d8a825f: bundle2: add &#039;source&#039; atrribute to bundleoperation class (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2993?vs=7460&id=7470

REVISION DETAIL
  https://phab.mercurial-scm.org/D2993

AFFECTED FILES
  mercurial/bundle2.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -299,7 +299,7 @@ 
     * a way to construct a bundle response when applicable.
     """
 
-    def __init__(self, repo, transactiongetter, captureoutput=True):
+    def __init__(self, repo, transactiongetter, captureoutput=True, source=''):
         self.repo = repo
         self.ui = repo.ui
         self.records = unbundlerecords()
@@ -309,6 +309,7 @@ 
         self._gettransaction = transactiongetter
         # carries value that can modify part behavior
         self.modes = {}
+        self.source = source
 
     def gettransaction(self):
         transaction = self._gettransaction()