Patchwork D1903: mq: use bytes() instead of str() to encode statusentries for writing

login
register
mail settings
Submitter phabricator
Date Feb. 1, 2018, 8:43 p.m.
Message ID <ddae3e8036c11324f392e8a48c197739@localhost.localdomain>
Download mbox | patch
Permalink /patch/27145/
State Not Applicable
Headers show

Comments

phabricator - Feb. 1, 2018, 8:43 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHG577a4d267e0f: mq: use bytes() instead of str() to encode statusentries for writing (authored by durin42, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D1903?vs=4910&id=5073

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




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

Patch

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -700,7 +700,7 @@ 
                 fp.write("%s\n" % i)
             fp.close()
         if self.applieddirty:
-            writelist(map(str, self.applied), self.statuspath)
+            writelist(map(bytes, self.applied), self.statuspath)
             self.applieddirty = False
         if self.seriesdirty:
             writelist(self.fullseries, self.seriespath)