From patchwork Sat Mar 31 17:18:52 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D2993: bundle2: add 'source' atrribute to bundleoperation class From: phabricator X-Patchwork-Id: 30068 Message-Id: <39635e8cb5fd60d2019eee410661a7db@localhost.localdomain> To: mercurial-devel@mercurial-scm.org Date: Sat, 31 Mar 2018 17:18:52 +0000 This revision was automatically updated to reflect the committed changes. Closed by commit rHG7e906d8a825f: bundle2: add 'source' 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 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()