mercurial/patch.py
changeset 41401 4a33a6bf2b52
parent 41375 f1b0d9988825
child 41454 d1d3094b54f9
equal deleted inserted replaced
41400:4a409c19831f 41401:4a33a6bf2b52
  2804             removes += 1
  2804             removes += 1
  2805         elif (line.startswith('GIT binary patch') or
  2805         elif (line.startswith('GIT binary patch') or
  2806               line.startswith('Binary file')):
  2806               line.startswith('Binary file')):
  2807             isbinary = True
  2807             isbinary = True
  2808         elif line.startswith('rename from'):
  2808         elif line.startswith('rename from'):
  2809             filename = line.split()[-1]
  2809             filename = line[12:]
  2810         elif line.startswith('rename to'):
  2810         elif line.startswith('rename to'):
  2811             filename += ' => %s' % line.split()[-1]
  2811             filename += ' => %s' % line[10:]
  2812     addresult()
  2812     addresult()
  2813     return results
  2813     return results
  2814 
  2814 
  2815 def diffstat(lines, width=80):
  2815 def diffstat(lines, width=80):
  2816     output = []
  2816     output = []