diff mercurial/sshpeer.py @ 37620:fd1dd79cff20

cmdutil: pass in parsed patch to tryimportone() (API) Previously, we parsed the patch in tryimportone(). This assumes the input is in a patch format that needs to be parsed. We want to support feeding in data from other formats. So let's let the caller handle the parsing. One wonky thing about patch parsing is that patch.extract() creates a temp file to hold the diffs and it is up to tryimportone() to unlink that temp file. I'll improve this in a subsequent commit. Differential Revision: https://phab.mercurial-scm.org/D3305
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 12 Apr 2018 23:06:27 -0700
parents a81d02ea65db
children 0664be4f0c1f
line wrap: on
line diff