mercurial/patch.py
changeset 7670 e5f445c94226
parent 7664 3cc74ee75b0d
child 7732 3793802ea41b
child 7736 fb0776fe3e38
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))