D2303: bundle2: use pycompat.strkwargs as needed
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sun Feb 18 05:36:18 UTC 2018
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REPOSITORY
rHG Mercurial
REVISION DETAIL
https://phab.mercurial-scm.org/D2303
AFFECTED FILES
mercurial/bundle2.py
CHANGE DETAILS
diff --git a/mercurial/bundle2.py b/mercurial/bundle2.py
--- a/mercurial/bundle2.py
+++ b/mercurial/bundle2.py
@@ -2040,14 +2040,15 @@
allhooks.append(hookargs)
for hookargs in allhooks:
- op.repo.hook('prepushkey', throw=True, **hookargs)
+ op.repo.hook('prepushkey', throw=True,
+ **pycompat.strkwargs(hookargs))
bookstore.applychanges(op.repo, op.gettransaction(), changes)
if pushkeycompat:
def runhook():
for hookargs in allhooks:
- op.repo.hook('pushkey', **hookargs)
+ op.repo.hook('pushkey', **pycompat.strkwargs(hookargs))
op.repo._afterlock(runhook)
elif bookmarksmode == 'records':
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list