mercurial/patch.py
changeset 41375 f1b0d9988825
parent 41365 876494fd967d
child 41401 4a33a6bf2b52
equal deleted inserted replaced
41374:d75fde22de91 41375:f1b0d9988825
  2803         elif line.startswith('-') and not inheader:
  2803         elif line.startswith('-') and not inheader:
  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'):
       
  2809             filename = line.split()[-1]
       
  2810         elif line.startswith('rename to'):
       
  2811             filename += ' => %s' % line.split()[-1]
  2808     addresult()
  2812     addresult()
  2809     return results
  2813     return results
  2810 
  2814 
  2811 def diffstat(lines, width=80):
  2815 def diffstat(lines, width=80):
  2812     output = []
  2816     output = []