Patchwork D855: py3: use pycompat.bytestr instead of str

login
register
mail settings
Submitter phabricator
Date Sept. 30, 2017, 1:19 p.m.
Message ID <c691ae40c7b509767ad2d5c8c5e3c404@localhost.localdomain>
Download mbox | patch
Permalink /patch/24260/
State Not Applicable
Headers show

Comments

phabricator - Sept. 30, 2017, 1:19 p.m.
pulkit updated this revision to Diff 2186.
pulkit retitled this revision from "py3: use bytes instead of str" to "py3: use pycompat.bytestr instead of str".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D855?vs=2180&id=2186

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

AFFECTED FILES
  mercurial/merge.py

CHANGE DETAILS




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

Patch

diff --git a/mercurial/merge.py b/mercurial/merge.py
--- a/mercurial/merge.py
+++ b/mercurial/merge.py
@@ -990,7 +990,8 @@ 
     else: # only when merge.preferancestor=* - the default
         repo.ui.note(
             _("note: merging %s and %s using bids from ancestors %s\n") %
-            (wctx, mctx, _(' and ').join(str(anc) for anc in ancestors)))
+            (wctx, mctx, _(' and ').join(pycompat.bytestr(anc)
+                                            for anc in ancestors)))
 
         # Call for bids
         fbids = {} # mapping filename to bids (action method to list af actions)