mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-22 14:52:40 +01:00
(stable) Promote 2018 Week 43
This commit is contained in:
commit
ea6796fea5
1 changed files with 8 additions and 4 deletions
|
@ -460,12 +460,16 @@ final class ArcanistMercurialAPI extends ArcanistRepositoryAPI {
|
|||
Filesystem::createDirectory(dirname($tmppath), 0755, true);
|
||||
}
|
||||
|
||||
// NOTE: The "%s%%p" construction passes a literal "%p" to Mercurial,
|
||||
// which is a formatting directive for a repo-relative filepath. The
|
||||
// particulars of the construction avoid Windows escaping issues. See
|
||||
// PHI904.
|
||||
|
||||
list($err, $stdout) = $this->execManualLocal(
|
||||
'cat --rev %s --output %s -- %C',
|
||||
'cat --rev %s --output %s%%p -- %Ls',
|
||||
$revision,
|
||||
// %p is the formatter for the repo-relative filepath
|
||||
$tmpdir.'/%p',
|
||||
implode(' ', $paths));
|
||||
$tmpdir.DIRECTORY_SEPARATOR,
|
||||
$paths);
|
||||
|
||||
$filedata = array();
|
||||
foreach ($paths as $path) {
|
||||
|
|
Loading…
Reference in a new issue