# HG changeset patch # User Matt Harbison # Date 2019-11-30 07:38:42 # Node ID 8accf5fa9930adecc32ee74252eea4c0c65759c7 # Parent d1b9d2c6ec96656ba66e0bf42018b0cb45071412 repair: fix an `isinstance(nodelist, str)` check for py3 All of the callers appear to pass a list, so this doesn't fix anything in core hg. But maybe out of tree extensions use this shortcut. Differential Revision: https://phab.mercurial-scm.org/D7533 diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -130,7 +130,7 @@ def strip(ui, repo, nodelist, backup=Tru cl = repo.changelog # TODO handle undo of merge sets - if isinstance(nodelist, str): + if isinstance(nodelist, bytes): nodelist = [nodelist] striplist = [cl.rev(node) for node in nodelist] striprev = min(striplist)