mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 15:27:13 +03:00
py3: handle keyword arguments in hgext/automv.py
Differential Revision: https://phab.mercurial-scm.org/D1296
This commit is contained in:
parent
d47e0831af
commit
6b74a599aa
@ -32,6 +32,7 @@ from mercurial import (
|
||||
copies,
|
||||
error,
|
||||
extensions,
|
||||
pycompat,
|
||||
registrar,
|
||||
scmutil,
|
||||
similar
|
||||
@ -53,6 +54,7 @@ def extsetup(ui):
|
||||
|
||||
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 @@ def mvcheck(orig, ui, repo, *pats, **opts):
|
||||
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.
|
||||
|
Loading…
Reference in New Issue
Block a user