Submitter | Simon Farnsworth |
---|---|
Date | Feb. 9, 2017, 9:52 p.m. |
Message ID | <f8b12c890147ebce0c06.1486677139@devvm022.lla2.facebook.com> |
Download | mbox | patch |
Permalink | /patch/18372/ |
State | Changes Requested |
Headers | show |
Comments
Patch
diff --git a/hgext/histedit.py b/hgext/histedit.py --- a/hgext/histedit.py +++ b/hgext/histedit.py @@ -991,11 +991,12 @@ return goalnew def _readfile(ui, path): - if path == '-': - return ui.fin.read() - else: - with open(path, 'rb') as f: - return f.read() + with ui.timeblockedsection('histedit'): + if path == '-': + return ui.fin.read() + else: + with open(path, 'rb') as f: + return f.read() def _validateargs(ui, repo, state, freeargs, opts, goal, rules, revs): # TODO only abort if we try to histedit mq patches, not just