Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/patch.py @ 7670:e5f445c94226
kill some trailing whitespace
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Mon, 19 Jan 2009 12:59:56 +0100 |
parents | 3cc74ee75b0d |
children | 3793802ea41b fb0776fe3e38 |
comparison
equal
deleted
inserted
replaced
7669:ca39dbc589c9 | 7670:e5f445c94226 |
---|---|
1357 filename = line.split(None, 5)[-1] | 1357 filename = line.split(None, 5)[-1] |
1358 elif line.startswith('+') and not line.startswith('+++'): | 1358 elif line.startswith('+') and not line.startswith('+++'): |
1359 adds += 1 | 1359 adds += 1 |
1360 elif line.startswith('-') and not line.startswith('---'): | 1360 elif line.startswith('-') and not line.startswith('---'): |
1361 removes += 1 | 1361 removes += 1 |
1362 if filename: | 1362 if filename: |
1363 yield (filename, adds, removes) | 1363 yield (filename, adds, removes) |
1364 | 1364 |
1365 def diffstat(lines): | 1365 def diffstat(lines): |
1366 output = [] | 1366 output = [] |
1367 stats = list(diffstatdata(lines)) | 1367 stats = list(diffstatdata(lines)) |