Caught by pytype:
File "/mnt/c/Users/Matt/hg/mercurial/merge.py", line 1346, in batchremove: Function _bytestr.__init__ was called with the wrong arguments [wrong-arg-types] Expected: (self, ints: Iterable[int]) Actually passed: (self, ints: str)
pulkit |
hg-reviewers |
Caught by pytype:
File "/mnt/c/Users/Matt/hg/mercurial/merge.py", line 1346, in batchremove: Function _bytestr.__init__ was called with the wrong arguments [wrong-arg-types] Expected: (self, ints: Iterable[int]) Actually passed: (self, ints: str)
Automatic diff as part of commit; lint not applicable. |
Automatic diff as part of commit; unit tests not applicable. |
Path | Packages | |||
---|---|---|---|---|
M | mercurial/merge.py (3 lines) |
Status | Author | Revision | |
---|---|---|---|
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 | ||
Closed | mharbison72 |
from .i18n import _ | from .i18n import _ | ||||
from .node import ( | from .node import ( | ||||
addednodeid, | addednodeid, | ||||
modifiednodeid, | modifiednodeid, | ||||
nullid, | nullid, | ||||
nullrev, | nullrev, | ||||
) | ) | ||||
from .thirdparty import attr | from .thirdparty import attr | ||||
from .utils import stringutil | |||||
from . import ( | from . import ( | ||||
copies, | copies, | ||||
encoding, | encoding, | ||||
error, | error, | ||||
filemerge, | filemerge, | ||||
match as matchmod, | match as matchmod, | ||||
mergestate as mergestatemod, | mergestate as mergestatemod, | ||||
obsutil, | obsutil, | ||||
if verbose: | if verbose: | ||||
repo.ui.note(_(b"removing %s\n") % f) | repo.ui.note(_(b"removing %s\n") % f) | ||||
wctx[f].audit() | wctx[f].audit() | ||||
try: | try: | ||||
wctx[f].remove(ignoremissing=True) | wctx[f].remove(ignoremissing=True) | ||||
except OSError as inst: | except OSError as inst: | ||||
repo.ui.warn( | repo.ui.warn( | ||||
_(b"update failed to remove %s: %s!\n") | _(b"update failed to remove %s: %s!\n") | ||||
% (f, pycompat.bytestr(inst.strerror)) | % (f, stringutil.forcebytestr(inst.strerror)) | ||||
) | ) | ||||
if i == 100: | if i == 100: | ||||
yield i, f | yield i, f | ||||
i = 0 | i = 0 | ||||
i += 1 | i += 1 | ||||
if i > 0: | if i > 0: | ||||
yield i, f | yield i, f | ||||