Patchwork [1,of,2] statprof: fix indent level of fp.write() (issue6004)

login
register
mail settings
Submitter Yuya Nishihara
Date Oct. 20, 2018, 11:33 a.m.
Message ID <fc4c598dd4a0443977af.1540035204@mimosa>
Download mbox | patch
Permalink /patch/36208/
State Accepted
Headers show

Comments

Yuya Nishihara - Oct. 20, 2018, 11:33 a.m.
# HG changeset patch
# User Yuya Nishihara <yuya@tcha.org>
# Date 1540034148 -32400
#      Sat Oct 20 20:15:48 2018 +0900
# Node ID fc4c598dd4a0443977aff8c1b5d77c6377bd30cc
# Parent  a9e303dcd1e1f22e9930fe745aee21674cf209c0
statprof: fix indent level of fp.write() (issue6004)

It was changed at 9d3034348c4f by mistake.
Pulkit Goyal - Oct. 21, 2018, 3:12 p.m.
On Sat, Oct 20, 2018 at 2:34 PM Yuya Nishihara <yuya@tcha.org> wrote:

> # HG changeset patch
> # User Yuya Nishihara <yuya@tcha.org>
> # Date 1540034148 -32400
> #      Sat Oct 20 20:15:48 2018 +0900
> # Node ID fc4c598dd4a0443977aff8c1b5d77c6377bd30cc
> # Parent  a9e303dcd1e1f22e9930fe745aee21674cf209c0
> statprof: fix indent level of fp.write() (issue6004)
>
> It was changed at 9d3034348c4f by mistake.
>

Queued this series, many thanks!

Patch

diff --git a/mercurial/statprof.py b/mercurial/statprof.py
--- a/mercurial/statprof.py
+++ b/mercurial/statprof.py
@@ -704,7 +704,7 @@  def display_hotpath(data, fp, limit=0.05
             # Make frames that didn't actually perform work dark grey
             elif node.count - childrensamples == 0:
                 finalstring = '\033[90m' + finalstring + '\033[0m'
-                fp.write(finalstring + b'\n')
+            fp.write(finalstring + b'\n')
 
         newdepth = depth
         if len(visiblechildren) > 1 or multiple_siblings: