changeset 37620 | fd1dd79cff20 |
parent 37604 | daafaff4e5be |
child 37621 | 5537d8f5e989 |
--- a/mercurial/commands.py Thu Apr 12 20:42:42 2018 -0700 +++ b/mercurial/commands.py Thu Apr 12 23:06:27 2018 -0700 @@ -3089,9 +3089,11 @@ haspatch = False for hunk in patch.split(patchfile): - (msg, node, rej) = cmdutil.tryimportone(ui, repo, hunk, - parents, opts, - msgs, hg.clean) + patchdata = patch.extract(ui, hunk) + + msg, node, rej = cmdutil.tryimportone(ui, repo, patchdata, + parents, opts, + msgs, hg.clean) if msg: haspatch = True ui.note(msg + '\n')