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

login
register
mail settings
Submitter phabricator
Date Dec. 2, 2019, 9:56 p.m.
Message ID <52023273683d157dde4777ad863c20fc@localhost.localdomain>
Download mbox | patch
Permalink /patch/43575/
State Not Applicable
Headers show

Comments

phabricator - Dec. 2, 2019, 9:56 p.m.
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




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

Patch

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():