##// END OF EJS Templates
crecord: log blocked time waiting for curses input...
Simon Farnsworth -
r30981:a0c4e570 default
parent child Browse files
Show More
@@ -1375,7 +1375,8 b' the following are valid keystrokes:'
1375 pass
1375 pass
1376 helpwin.refresh()
1376 helpwin.refresh()
1377 try:
1377 try:
1378 helpwin.getkey()
1378 with self.ui.timeblockedsection('crecord'):
1379 helpwin.getkey()
1379 except curses.error:
1380 except curses.error:
1380 pass
1381 pass
1381
1382
@@ -1392,7 +1393,8 b' the following are valid keystrokes:'
1392 self.stdscr.refresh()
1393 self.stdscr.refresh()
1393 confirmwin.refresh()
1394 confirmwin.refresh()
1394 try:
1395 try:
1395 response = chr(self.stdscr.getch())
1396 with self.ui.timeblockedsection('crecord'):
1397 response = chr(self.stdscr.getch())
1396 except ValueError:
1398 except ValueError:
1397 response = None
1399 response = None
1398
1400
@@ -1412,7 +1414,8 b" note: don't add/remove lines unless you "
1412
1414
1413 are you sure you want to review/edit and confirm the selected changes [yn]?
1415 are you sure you want to review/edit and confirm the selected changes [yn]?
1414 """)
1416 """)
1415 response = self.confirmationwindow(confirmtext)
1417 with self.ui.timeblockedsection('crecord'):
1418 response = self.confirmationwindow(confirmtext)
1416 if response is None:
1419 if response is None:
1417 response = "n"
1420 response = "n"
1418 if response.lower().startswith("y"):
1421 if response.lower().startswith("y"):
@@ -1655,7 +1658,8 b' are you sure you want to review/edit and'
1655 while True:
1658 while True:
1656 self.updatescreen()
1659 self.updatescreen()
1657 try:
1660 try:
1658 keypressed = self.statuswin.getkey()
1661 with self.ui.timeblockedsection('crecord'):
1662 keypressed = self.statuswin.getkey()
1659 if self.errorstr is not None:
1663 if self.errorstr is not None:
1660 self.errorstr = None
1664 self.errorstr = None
1661 continue
1665 continue
General Comments 0
You need to be logged in to leave comments. Login now