py3: handle keyword arguments in hgext/automv.py
Differential Revision: https://phab.mercurial-scm.org/D1296
--- a/hgext/automv.py Sun Oct 22 23:51:57 2017 +0530
+++ b/hgext/automv.py Sun Oct 22 23:52:22 2017 +0530
@@ -32,6 +32,7 @@
copies,
error,
extensions,
+ pycompat,
registrar,
scmutil,
similar
@@ -53,6 +54,7 @@
def mvcheck(orig, ui, repo, *pats, **opts):
"""Hook to check for moves at commit time"""
+ opts = pycompat.byteskwargs(opts)
renames = None
disabled = opts.pop('no_automv', False)
if not disabled:
@@ -68,7 +70,7 @@
with repo.wlock():
if renames is not None:
scmutil._markchanges(repo, (), (), renames)
- return orig(ui, repo, *pats, **opts)
+ return orig(ui, repo, *pats, **pycompat.strkwargs(opts))
def _interestingfiles(repo, matcher):
"""Find what files were added or removed in this commit.