hgext/histedit.py
changeset 30983 d4825798818b
parent 30848 7080652af6e6
child 31055 f1b63ec4b987
equal deleted inserted replaced
30982:08e6f4dac2ca 30983:d4825798818b
   990         return goaleditplan
   990         return goaleditplan
   991     return goalnew
   991     return goalnew
   992 
   992 
   993 def _readfile(ui, path):
   993 def _readfile(ui, path):
   994     if path == '-':
   994     if path == '-':
   995         return ui.fin.read()
   995         with ui.timeblockedsection('histedit'):
       
   996             return ui.fin.read()
   996     else:
   997     else:
   997         with open(path, 'rb') as f:
   998         with open(path, 'rb') as f:
   998             return f.read()
   999             return f.read()
   999 
  1000 
  1000 def _validateargs(ui, repo, state, freeargs, opts, goal, rules, revs):
  1001 def _validateargs(ui, repo, state, freeargs, opts, goal, rules, revs):