Patchwork D2246: tests: add bytes prefixes to test-histedit-fold.t's local extension

login
register
mail settings
Submitter phabricator
Date Feb. 14, 2018, 5:09 a.m.
Message ID <2bffd3306771e836970cb2410df6bbec@localhost.localdomain>
Download mbox | patch
Permalink /patch/27874/
State Not Applicable
Headers show

Comments

phabricator - Feb. 14, 2018, 5:09 a.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG2ad59b55759a: tests: add bytes prefixes to test-histedit-fold.t&#039;s local extension (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2246?vs=5670&id=5681

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

AFFECTED FILES
  tests/test-histedit-fold.t

CHANGE DETAILS




To: durin42, #hg-reviewers, indygreg
Cc: mercurial-devel

Patch

diff --git a/tests/test-histedit-fold.t b/tests/test-histedit-fold.t
--- a/tests/test-histedit-fold.t
+++ b/tests/test-histedit-fold.t
@@ -154,9 +154,9 @@ 
   > from mercurial import util
   > def abortfolding(ui, repo, hooktype, **kwargs):
   >     ctx = repo[kwargs.get('node')]
-  >     if set(ctx.files()) == {'c', 'd', 'f'}:
+  >     if set(ctx.files()) == {b'c', b'd', b'f'}:
   >         return True # abort folding commit only
-  >     ui.warn('allow non-folding commit\\n')
+  >     ui.warn(b'allow non-folding commit\\n')
   > EOF
   $ cat > .hg/hgrc <<EOF
   > [hooks]