py3: handle keyword arguments in hgext/automv.py
authorPulkit Goyal <7895pulkit@gmail.com>
Sun, 22 Oct 2017 23:52:22 +0530
changeset 34971 38637dd39cfd
parent 34970 3e549546a6e9
child 34972 375577785f49
py3: handle keyword arguments in hgext/automv.py Differential Revision: https://phab.mercurial-scm.org/D1296
hgext/automv.py
--- 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.