Page MenuHomePhabricator

D21706.diff
No OneTemporary

D21706.diff

diff --git a/src/land/engine/ArcanistMercurialLandEngine.php b/src/land/engine/ArcanistMercurialLandEngine.php
--- a/src/land/engine/ArcanistMercurialLandEngine.php
+++ b/src/land/engine/ArcanistMercurialLandEngine.php
@@ -834,14 +834,19 @@
$argv[] = '--keep';
$argv[] = '--collapse';
- $future = $api->execFutureLocal('rebase %Ls', $argv);
+ $future = $api->execFutureLocalWithExtension(
+ 'rebase',
+ 'rebase %Ls',
+ $argv);
$future->write($commit_message);
$future->resolvex();
} catch (CommandException $ex) {
// Aborting the rebase should restore the same state prior to running the
// rebase command.
- $api->execManualLocal('rebase --abort');
+ $api->execManualLocalWithExtension(
+ 'rebase',
+ 'rebase --abort');
throw $ex;
}
@@ -1064,14 +1069,17 @@
// be deleted, we can skip this rebase?
try {
- $api->execxLocal(
+ $api->execxLocalWithExtension(
+ 'rebase',
'rebase --source %s --dest %s --keep --keepbranches',
$child_hash,
$new_commit);
} catch (CommandException $ex) {
// Aborting the rebase should restore the same state prior to running
// the rebase command.
- $api->execManualLocal('rebase --abort');
+ $api->execManualLocalWithExtension(
+ 'rebase',
+ 'rebase --abort');
throw $ex;
}
}
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
@@ -1149,6 +1149,20 @@
$extended_args);
}
+ public function execManualLocalWithExtension(
+ $extension,
+ $pattern /* , ... */) {
+
+ $args = func_get_args();
+ $extended_args = call_user_func_array(
+ array($this, 'buildMercurialExtensionCommand'),
+ $args);
+
+ return call_user_func_array(
+ array($this, 'execManualLocal'),
+ $extended_args);
+ }
+
private function executeMercurialFeatureTest($feature, $resolve) {
if (array_key_exists($feature, $this->featureResults)) {
return $this->featureResults[$feature];

File Metadata

Mime Type
text/plain
Expires
Thu, May 9, 5:55 AM (3 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6274208
Default Alt Text
D21706.diff (2 KB)

Event Timeline