diff 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
line wrap: on
line diff
--- a/mercurial/patch.py	Sun Oct 06 06:55:49 2019 -0700
+++ b/mercurial/patch.py	Sun Oct 06 12:59:47 2019 +0200
@@ -289,6 +289,7 @@
                             prefix = '# %s ' % header
                             if line.startswith(prefix):
                                 data[key] = line[len(prefix):]
+                                ui.debug('%s: %s\n' % (header, data[key]))
                     else:
                         hgpatchheader = False
                 elif line == '---':