comparison hgext/histedit.py @ 43744:40db695040eb stable

histedit: fix an `isinstance(nodelist, str)` check for py3 Differential Revision: https://phab.mercurial-scm.org/D7536
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 30 Nov 2019 03:01:44 -0500
parents b27cf9f52194
children 29adf0a087a1
comparison
equal deleted inserted replaced
43743:66210a20f727 43744:40db695040eb
2572 backup = not nobackup 2572 backup = not nobackup
2573 repair.strip(ui, repo, roots, backup=backup) 2573 repair.strip(ui, repo, roots, backup=backup)
2574 2574
2575 2575
2576 def stripwrapper(orig, ui, repo, nodelist, *args, **kwargs): 2576 def stripwrapper(orig, ui, repo, nodelist, *args, **kwargs):
2577 if isinstance(nodelist, str): 2577 if isinstance(nodelist, bytes):
2578 nodelist = [nodelist] 2578 nodelist = [nodelist]
2579 state = histeditstate(repo) 2579 state = histeditstate(repo)
2580 if state.inprogress(): 2580 if state.inprogress():
2581 state.read() 2581 state.read()
2582 histedit_nodes = { 2582 histedit_nodes = {