Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15399485
D21320.id50748.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D21320.id50748.diff
View Options
diff --git a/src/land/engine/ArcanistGitLandEngine.php b/src/land/engine/ArcanistGitLandEngine.php
--- a/src/land/engine/ArcanistGitLandEngine.php
+++ b/src/land/engine/ArcanistGitLandEngine.php
@@ -103,6 +103,11 @@
}
}
+ // Sort the result so that branches are processed in natural order.
+ $names = array_keys($result);
+ natcasesort($names);
+ $result = array_select_keys($result, $names);
+
return $result;
}
diff --git a/src/land/engine/ArcanistLandEngine.php b/src/land/engine/ArcanistLandEngine.php
--- a/src/land/engine/ArcanistLandEngine.php
+++ b/src/land/engine/ArcanistLandEngine.php
@@ -140,6 +140,15 @@
return $this->shouldKeep;
}
+ final public function setStrategyArgument($strategy_argument) {
+ $this->strategyArgument = $strategy_argument;
+ return $this;
+ }
+
+ final public function getStrategyArgument() {
+ return $this->strategyArgument;
+ }
+
final public function setStrategy($strategy) {
$this->strategy = $strategy;
return $this;
diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -2357,11 +2357,13 @@
$prompts = $this->newPrompts();
assert_instances_of($prompts, 'ArcanistPrompt');
+ // TODO: Move this somewhere modular.
+
$prompts[] = $this->newPrompt('arc.state.stash')
->setDescription(
pht(
'Prompts the user to stash changes and continue when the '.
- 'working copy has untracked, uncommitted. or unstaged '.
+ 'working copy has untracked, uncommitted, or unstaged '.
'changes.'));
// TODO: Swap to ArrayCheck?
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Mar 18, 4:47 AM (8 h, 31 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332206
Default Alt Text
D21320.id50748.diff (1 KB)
Attached To
Mode
D21320: In "arc land", rebase branches in natural order
Attached
Detach File
Event Timeline
Log In to Comment