improve git-blame parsing

--HG--
branch : pmacs2
This commit is contained in:
Erik Osheim 2012-03-27 23:21:47 -04:00
parent 126908cc26
commit 07f5e5e8f1
1 changed files with 1 additions and 1 deletions

View File

@ -177,7 +177,7 @@ class GitBlame(VcBlame):
# rev, user, date, [time], [timezone], [date-str], content
num_fields = 3
#line_re = re.compile(r'^\^*([0-9a-f]+) \(([a-zA-Z0-9_ ]+|Not Committed Yet) +([-0-9]+) [:0-9]+ +[-\+]\d{4} +\d+\) (.*)\n$')
line_re = re.compile(r'^\^*([0-9a-f]+) .+ +\(([a-zA-Z0-9_ ]+|Not Committed Yet) +([-0-9]+) [:0-9]+ +[-\+]\d{4} +\d+\) (.*)\n$')
line_re = re.compile(r'^\^*([0-9a-f]+) +\(([a-zA-Z0-9_ ]+|Not Committed Yet) +([-0-9]+) [:0-9]+ +[-\+]\d{4} +\d+\) (.*)\n$')
prefix_fmt = '[g:d:*]%*s [c:d:*]%-*s [b:d:*]%*s[d:d:*]'
pretest_err_msg = 'Git is not installed'
_is_method = True