D7533: repair: fix an `isinstance(nodelist, str)` check for py3

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Mon Dec 2 16:55:37 EST 2019


Closed by commit rHG8accf5fa9930: repair: fix an `isinstance(nodelist, str)` check for py3 (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D7533?vs=18409&id=18426

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7533/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7533

AFFECTED FILES
  mercurial/repair.py

CHANGE DETAILS

diff --git a/mercurial/repair.py b/mercurial/repair.py
--- a/mercurial/repair.py
+++ b/mercurial/repair.py
@@ -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)



To: mharbison72, #hg-reviewers, dlax, pulkit
Cc: dlax, mercurial-devel


More information about the Mercurial-devel mailing list