mercurial/patch.py
changeset 3673 eb0b4a2d70a9
parent 3632 4cfb72bcb978
child 3693 454b3a8cdf28
equal deleted inserted replaced
3672:e8730b5b8a32 3673:eb0b4a2d70a9
   141         if line.startswith('diff --git'):
   141         if line.startswith('diff --git'):
   142             m = gitre.match(line)
   142             m = gitre.match(line)
   143             if m:
   143             if m:
   144                 if gp:
   144                 if gp:
   145                     gitpatches.append(gp)
   145                     gitpatches.append(gp)
   146                 src, dst = m.group(1,2)
   146                 src, dst = m.group(1, 2)
   147                 gp = gitpatch(dst)
   147                 gp = gitpatch(dst)
   148                 gp.lineno = lineno
   148                 gp.lineno = lineno
   149         elif gp:
   149         elif gp:
   150             if line.startswith('--- '):
   150             if line.startswith('--- '):
   151                 if gp.op in ('COPY', 'RENAME'):
   151                 if gp.op in ('COPY', 'RENAME'):