# HG changeset patch # User Simon Farnsworth # Date 1487194446 28800 # Node ID d4825798818b38c723b68bb5d3f38c5c5dff465a # Parent 08e6f4dac2ca4efef1ff9282bc1f4f798d7dfa94 histedit: log the time taken to read in the commands list If we're being fed an external command list from stdin (histedit --commands -), then the time spent reading stdin is outside our control. Log it. diff -r 08e6f4dac2ca -r d4825798818b hgext/histedit.py --- a/hgext/histedit.py Wed Feb 15 13:34:06 2017 -0800 +++ b/hgext/histedit.py Wed Feb 15 13:34:06 2017 -0800 @@ -992,7 +992,8 @@ def _readfile(ui, path): if path == '-': - return ui.fin.read() + with ui.timeblockedsection('histedit'): + return ui.fin.read() else: with open(path, 'rb') as f: return f.read()