mercurial/patch.py
changeset 9392 039bce1b505f
parent 9331 9d68d9deda51
child 9393 23c4e772c172
equal deleted inserted replaced
9391:2705e6816d33 9392:039bce1b505f
   186         if line.startswith('diff --git'):
   186         if line.startswith('diff --git'):
   187             m = gitre.match(line)
   187             m = gitre.match(line)
   188             if m:
   188             if m:
   189                 if gp:
   189                 if gp:
   190                     gitpatches.append(gp)
   190                     gitpatches.append(gp)
   191                 src, dst = m.group(1, 2)
   191                 dst = m.group(2)
   192                 gp = patchmeta(dst)
   192                 gp = patchmeta(dst)
   193                 gp.lineno = lineno
   193                 gp.lineno = lineno
   194         elif gp:
   194         elif gp:
   195             if line.startswith('--- '):
   195             if line.startswith('--- '):
   196                 if gp.op in ('COPY', 'RENAME'):
   196                 if gp.op in ('COPY', 'RENAME'):