Patchwork D2037: py3: add b'' to tweakdefualts config string

login
register
mail settings
Submitter phabricator
Date Feb. 5, 2018, 8:22 a.m.
Message ID <differential-rev-PHID-DREV-jk4w5zdzroyjgcnzewk7-req@phab.mercurial-scm.org>
Download mbox | patch
Permalink /patch/27297/
State Superseded
Headers show

Comments

phabricator - Feb. 5, 2018, 8:22 a.m.
pulkit created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The tweakdefaults config string is enclosed inside triple quotes and the
  transformer does not adds b'' there.
  
  1. skip-blame because we are just adding b''

REPOSITORY
  rHG Mercurial

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

AFFECTED FILES
  mercurial/ui.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel
phabricator - Feb. 5, 2018, 1:22 p.m.
lothiraldan added a comment.


  Nit small typo in the commit description first line: s/tweakdefualts/tweakdefaults

REPOSITORY
  rHG Mercurial

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

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

Patch

diff --git a/mercurial/ui.py b/mercurial/ui.py
--- a/mercurial/ui.py
+++ b/mercurial/ui.py
@@ -45,7 +45,7 @@ 
                      if not c.isalnum())
 
 # The config knobs that will be altered (if unset) by ui.tweakdefaults.
-tweakrc = """
+tweakrc = b"""
 [ui]
 # The rollback command is dangerous. As a rule, don't use it.
 rollback = False