Mercurial > hg
changeset 43741:8accf5fa9930 stable
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
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 30 Nov 2019 02:38:42 -0500 |
parents | d1b9d2c6ec96 |
children | 6ff1a0d109c9 |
files | mercurial/repair.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/repair.py Fri Nov 29 21:43:13 2019 +0100 +++ b/mercurial/repair.py Sat Nov 30 02:38:42 2019 -0500 @@ -130,7 +130,7 @@ 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)