@@ -426,7 +426,7 @@ def overridedebugstate(orig, ui, repo, *
# The overridden function filters the unknown files by removing any
# largefiles. This makes the merge proceed and we can then handle this
# case further in the overridden calculateupdates function below.
-def overridecheckunknownfile(origfn, repo, wctx, mctx, f, f2=None):
+def overridecheckunknownfile(origfn, repo, wctx, mctx, f, f2):
if lfutil.standin(repo.dirstate.normalize(f)) in wctx:
return False
return origfn(repo, wctx, mctx, f, f2)
@@ -401,9 +401,7 @@ class mergestate(object):
"""rerun merge process for file path `dfile`"""
return self._resolve(False, dfile, wctx, labels=labels)[1]
-def _checkunknownfile(repo, wctx, mctx, f, f2=None):
- if f2 is None:
- f2 = f
+def _checkunknownfile(repo, wctx, mctx, f, f2):
return (repo.wvfs.isfileorlink(f)
and repo.wvfs.audit.check(f)
and repo.dirstate.normalize(f) not in repo.dirstate
@@ -419,7 +417,7 @@ def _checkunknownfiles(repo, wctx, mctx,
if not force:
for f, (m, args, msg) in actions.iteritems():
if m in ('c', 'dc'):
- if _checkunknownfile(repo, wctx, mctx, f):
+ if _checkunknownfile(repo, wctx, mctx, f, f):
aborts.append(f)
elif m == 'dg':
if _checkunknownfile(repo, wctx, mctx, f, args[0]):
@@ -436,7 +434,7 @@ def _checkunknownfiles(repo, wctx, mctx,
actions[f] = ('g', args, msg)
elif m == 'cm':
fl2, anc = args
- different = _checkunknownfile(repo, wctx, mctx, f)
+ different = _checkunknownfile(repo, wctx, mctx, f, f)
if different:
actions[f] = ('m', (f, f, None, False, anc),
"remote differs from untracked local")