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

mharbison72 (Matt Harbison) phabricator at mercurial-scm.org
Sat Nov 30 17:09:47 UTC 2019


mharbison72 created this revision.
Herald added a reviewer: durin42.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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
Cc: mercurial-devel


More information about the Mercurial-devel mailing list