Mercurial > hg-stable
changeset 36306:1ec6fd26f841
bundle2: use pycompat.strkwargs as needed
Differential Revision: https://phab.mercurial-scm.org/D2303
author | Augie Fackler <augie@google.com> |
---|---|
date | Sat, 17 Feb 2018 22:37:35 -0500 |
parents | 164ed6d54fdf |
children | a748a5d1d7c3 |
files | mercurial/bundle2.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/bundle2.py Sat Feb 17 21:47:49 2018 -0500 +++ b/mercurial/bundle2.py Sat Feb 17 22:37:35 2018 -0500 @@ -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':