Page MenuHomePhabricator

D10994.diff
No OneTemporary

D10994.diff

diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php
--- a/src/repository/api/ArcanistMercurialAPI.php
+++ b/src/repository/api/ArcanistMercurialAPI.php
@@ -464,6 +464,16 @@
// on a large repo) because mercurial has to decompress and parse the
// entire manifest every time. Do it in one large batch instead.
+ // See T6112. On windows escapeshellarg removes the %-sign from the command
+ // string rendering the fast approach useless.
+ if (phutil_is_windows()) {
+ $filedata = array();
+ foreach ($paths as $path) {
+ $filedata[$path] = $this->getFileDataAtRevision($path, $revision);
+ }
+ return $filedata;
+ }
+
// hg cat will write the file data to files in a temp directory
$tmpdir = Filesystem::createTemporaryDirectory();

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 8:18 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6276587
Default Alt Text
D10994.diff (845 B)

Event Timeline