log bugfix: avoid stack dump if "log" produces no entries, the correct way

This commit is contained in:
Josh Holtrop 2012-07-03 09:43:57 -04:00
parent d004741a96
commit 59544d30a6

3
jsvn
View File

@ -115,7 +115,8 @@ class LogEntry(object):
elif re.match(r'-{72}', line):
if self.length != 0:
self.eof = False
break
break
self.length -= 1
elif re.match(r'Index:\s', line):
self.diffs.append([line])
mode = 'diff'