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

login
register
mail settings
Submitter phabricator
Date Jan. 18, 2018, 4:13 p.m.
Message ID <5ea0dccbfebd9e0959b0e0eadf46a36e@localhost.localdomain>
Download mbox | patch
Permalink /patch/26917/
State Not Applicable
Headers show

Comments

phabricator - Jan. 18, 2018, 4:13 p.m.
durin42 updated this revision to Diff 4910.
durin42 retitled this revision from "mq: use pycompat.bytestr() instead of str() to encode statusentries for writing" to "mq: use bytes() instead of str() to encode statusentries for writing".

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS




To: durin42, #hg-reviewers
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)