Mercurial > public > mercurial-scm > hg
comparison mercurial/patch.py @ 43066:db33e4f25729
import: add debug messages when parsing data from patch header
author | Denis Laxalde <denis@laxalde.org> |
---|---|
date | Sun, 06 Oct 2019 12:59:47 +0200 |
parents | 3cf091843b4f |
children | 2372284d9457 |
comparison
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: |