D2076: py3: use bytes instead of str

2018-02-07 Thread pulkit (Pulkit Goyal)
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGf87641bf4d23: py3: use bytes instead of str (authored by 
pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D2076?vs=5282=5290

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1272,7 +1272,7 @@
 if msg == defaultmsg.strip():
 msg = ''
 ph.setmessage(msg)
-p.write(str(ph))
+p.write(bytes(ph))
 if commitfiles:
 parent = self.qparents(repo, n)
 if inclsubs:
@@ -1853,7 +1853,7 @@
 self.putsubstate2changes(substatestate, c)
 chunks = patchmod.diff(repo, patchparent,
changes=c, opts=diffopts)
-comments = str(ph)
+comments = bytes(ph)
 if comments:
 patchf.write(comments)
 for chunk in chunks:



To: pulkit, #hg-reviewers, durin42
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel


D2076: py3: use bytes instead of str

2018-02-07 Thread pulkit (Pulkit Goyal)
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  hgext/mq.py

CHANGE DETAILS

diff --git a/hgext/mq.py b/hgext/mq.py
--- a/hgext/mq.py
+++ b/hgext/mq.py
@@ -1272,7 +1272,7 @@
 if msg == defaultmsg.strip():
 msg = ''
 ph.setmessage(msg)
-p.write(str(ph))
+p.write(bytes(ph))
 if commitfiles:
 parent = self.qparents(repo, n)
 if inclsubs:
@@ -1853,7 +1853,7 @@
 self.putsubstate2changes(substatestate, c)
 chunks = patchmod.diff(repo, patchparent,
changes=c, opts=diffopts)
-comments = str(ph)
+comments = bytes(ph)
 if comments:
 patchf.write(comments)
 for chunk in chunks:



To: pulkit, #hg-reviewers
Cc: mercurial-devel
___
Mercurial-devel mailing list
Mercurial-devel@mercurial-scm.org
https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel