D7536: histedit: fix an `isinstance(nodelist, str)` check for py3

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


Closed by commit rHG40db695040eb: histedit: 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/D7536?vs=18412&id=18429

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

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

AFFECTED FILES
  hgext/histedit.py

CHANGE DETAILS

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



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


More information about the Mercurial-devel mailing list