##// END OF EJS Templates
patch: a little bit more robust line counting on diff --stat (issue3183)
Jesus Espino Garcia -
r15971:089ee59a stable
parent child Browse files
Show More
@@ -1802,9 +1802,9 b' def diffstatdata(lines):'
1802 elif line.startswith('diff -r'):
1802 elif line.startswith('diff -r'):
1803 # format: "diff -r ... -r ... filename"
1803 # format: "diff -r ... -r ... filename"
1804 filename = diffre.search(line).group(1)
1804 filename = diffre.search(line).group(1)
1805 elif line.startswith('+') and not line.startswith('+++'):
1805 elif line.startswith('+') and not line.startswith('+++ '):
1806 adds += 1
1806 adds += 1
1807 elif line.startswith('-') and not line.startswith('---'):
1807 elif line.startswith('-') and not line.startswith('--- '):
1808 removes += 1
1808 removes += 1
1809 elif (line.startswith('GIT binary patch') or
1809 elif (line.startswith('GIT binary patch') or
1810 line.startswith('Binary file')):
1810 line.startswith('Binary file')):
General Comments 0
You need to be logged in to leave comments. Login now