hgext/blackbox.py
changeset 41532 bd3f03d8cc9f
parent 41365 876494fd967d
child 42615 56132ebd14c6
equal deleted inserted replaced
41531:14983ac4a764 41532:bd3f03d8cc9f
   188     for line in reversed(lines):
   188     for line in reversed(lines):
   189         if count >= limit:
   189         if count >= limit:
   190             break
   190             break
   191 
   191 
   192         # count the commands by matching lines like: 2013/01/23 19:13:36 root>
   192         # count the commands by matching lines like: 2013/01/23 19:13:36 root>
   193         if re.match('^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} .*> .*', line):
   193         if re.match(br'^\d{4}/\d{2}/\d{2} \d{2}:\d{2}:\d{2} .*> .*', line):
   194             count += 1
   194             count += 1
   195         output.append(line)
   195         output.append(line)
   196 
   196 
   197     ui.status('\n'.join(reversed(output)))
   197     ui.status('\n'.join(reversed(output)))