diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -2574,7 +2574,7 @@ def cleanupnode(ui, repo, nodes, nobacku def stripwrapper(orig, ui, repo, nodelist, *args, **kwargs): - if isinstance(nodelist, str): + if isinstance(nodelist, bytes): nodelist = [nodelist] state = histeditstate(repo) if state.inprogress():