Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15420915
D21319.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
D21319.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
@@ -17,6 +17,9 @@
}
protected function pruneBranches(array $sets) {
+ $api = $this->getRepositoryAPI();
+ $log = $this->getLogEngine();
+
$old_commits = array();
foreach ($sets as $set) {
$hash = last($set->getCommits())->getHash();
@@ -27,20 +30,19 @@
$old_commits,
$is_contains = false);
- $api = $this->getRepositoryAPI();
foreach ($branch_map as $branch_name => $branch_hash) {
$recovery_command = csprintf(
'git checkout -b %s %s',
$branch_name,
$this->getDisplayHash($branch_hash));
- echo tsprintf(
- "%s\n",
- pht('Cleaning up branch "%s"...', $branch_name));
+ $log->writeStatus(
+ pht('CLEANUP'),
+ pht('Destroying branch "%s". To recover, run:', $branch_name));
echo tsprintf(
- "%s\n",
- pht('(Use `%s` if you want it back.)', $recovery_command));
+ "\n **$** %s\n\n",
+ $recovery_command);
$api->execxLocal('branch -D -- %s', $branch_name);
$this->deletedBranches[$branch_name] = true;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 22, 6:58 PM (1 d, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7712530
Default Alt Text
D21319.diff (1 KB)
Attached To
Mode
D21319: Modernize output when pruning branches in Git during "arc land"
Attached
Detach File
Event Timeline
Log In to Comment