Patchwork D208: bundle2: add the capability to store hookargs on bundle operation object

login
register
mail settings
Submitter phabricator
Date Aug. 2, 2017, 3:33 p.m.
Message ID <31529cf7bef2fed46a3468dbbbbadb29@localhost.localdomain>
Download mbox | patch
Permalink /patch/22642/
State Not Applicable
Headers show

Comments

phabricator - Aug. 2, 2017, 3:33 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf3407d56a6e8: bundle2: add the capability to store hookargs on bundle operation object (authored by pulkit).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D208?vs=491&id=502

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

AFFECTED FILES
  mercurial/bundle2.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -299,6 +299,10 @@ 
         self.gettransaction = transactiongetter
         self.reply = None
         self.captureoutput = captureoutput
+        self.hookargs = {}
+
+    def addhookargs(self, hookargs):
+        self.hookargs.update(hookargs)
 
 class TransactionUnavailable(RuntimeError):
     pass