mercurial/patch.py
changeset 43066 db33e4f25729
parent 42856 3cf091843b4f
child 43076 2372284d9457
equal deleted inserted replaced
43065:31c1a5376745 43066:db33e4f25729
   287                     elif line.startswith("# "):
   287                     elif line.startswith("# "):
   288                         for header, key in patchheadermap:
   288                         for header, key in patchheadermap:
   289                             prefix = '# %s ' % header
   289                             prefix = '# %s ' % header
   290                             if line.startswith(prefix):
   290                             if line.startswith(prefix):
   291                                 data[key] = line[len(prefix):]
   291                                 data[key] = line[len(prefix):]
       
   292                                 ui.debug('%s: %s\n' % (header, data[key]))
   292                     else:
   293                     else:
   293                         hgpatchheader = False
   294                         hgpatchheader = False
   294                 elif line == '---':
   295                 elif line == '---':
   295                     ignoretext = True
   296                     ignoretext = True
   296                 if not hgpatchheader and not ignoretext:
   297                 if not hgpatchheader and not ignoretext: