mercurial/patch.py
changeset 42855 1fd530b1e1cf
parent 42566 f802a75da585
child 42856 3cf091843b4f
equal deleted inserted replaced
42854:db51a4ac85ac 42855:1fd530b1e1cf
   862     diffgit_re = re.compile('diff --git a/(.*) b/(.*)$')
   862     diffgit_re = re.compile('diff --git a/(.*) b/(.*)$')
   863     diff_re = re.compile('diff -r .* (.*)$')
   863     diff_re = re.compile('diff -r .* (.*)$')
   864     allhunks_re = re.compile('(?:index|deleted file) ')
   864     allhunks_re = re.compile('(?:index|deleted file) ')
   865     pretty_re = re.compile('(?:new file|deleted file) ')
   865     pretty_re = re.compile('(?:new file|deleted file) ')
   866     special_re = re.compile('(?:index|deleted|copy|rename|new mode) ')
   866     special_re = re.compile('(?:index|deleted|copy|rename|new mode) ')
   867     newfile_re = re.compile('(?:new file)')
   867     newfile_re = re.compile('(?:new file|copy to)')
   868 
   868 
   869     def __init__(self, header):
   869     def __init__(self, header):
   870         self.header = header
   870         self.header = header
   871         self.hunks = []
   871         self.hunks = []
   872 
   872