Show More
@@ -1681,6 +1681,16 b' def trydiff(repo, revs, ctx1, ctx2, modi' | |||||
1681 | if text: |
|
1681 | if text: | |
1682 | yield text |
|
1682 | yield text | |
1683 |
|
1683 | |||
|
1684 | def diffstatsum(stats): | |||
|
1685 | maxfile, addtotal, removetotal, binary = 0, 0, 0, False | |||
|
1686 | for f, a, r, b in stats: | |||
|
1687 | maxfile = max(maxfile, encoding.colwidth(f)) | |||
|
1688 | addtotal += a | |||
|
1689 | removetotal += r | |||
|
1690 | binary = binary or b | |||
|
1691 | ||||
|
1692 | return maxfile, addtotal, removetotal, binary | |||
|
1693 | ||||
1684 | def diffstatdata(lines): |
|
1694 | def diffstatdata(lines): | |
1685 | diffre = re.compile('^diff .*-r [a-z0-9]+\s(.*)$') |
|
1695 | diffre = re.compile('^diff .*-r [a-z0-9]+\s(.*)$') | |
1686 |
|
1696 |
General Comments 0
You need to be logged in to leave comments.
Login now