Patchwork D1296: py3: handle keyword arguments in hgext/automv.py

login
register
mail settings
Submitter phabricator
Date Nov. 4, 2017, 7:52 a.m.
Message ID <ccf0744708a005d31e36527491e4ef98@localhost.localdomain>
Download mbox | patch
Permalink /patch/25389/
State Not Applicable
Headers show

Comments

phabricator - Nov. 4, 2017, 7:52 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG38637dd39cfd: py3: handle keyword arguments in hgext/automv.py (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1296?vs=3233&id=3271

REVISION DETAIL
  https://phab.mercurial-scm.org/D1296

AFFECTED FILES
  hgext/automv.py

CHANGE DETAILS




To: pulkit, #hg-reviewers, yuja
Cc: mercurial-devel

Patch

diff --git a/hgext/automv.py b/hgext/automv.py
--- a/hgext/automv.py
+++ b/hgext/automv.py
@@ -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.