Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15375979
D9620.id23065.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
D9620.id23065.diff
View Options
diff --git a/src/workflow/ArcanistFeatureWorkflow.php b/src/workflow/ArcanistFeatureWorkflow.php
--- a/src/workflow/ArcanistFeatureWorkflow.php
+++ b/src/workflow/ArcanistFeatureWorkflow.php
@@ -197,22 +197,22 @@
list($info) = $future->resolvex();
list($hash, $epoch, $tree, $desc, $text) = explode("\1", trim($info), 5);
- $branch = $branches[$name];
- $branch['hash'] = $hash;
- $branch['desc'] = $desc;
+ $branch = $branches[$name] + array(
+ 'hash' => $hash,
+ 'desc' => $desc,
+ 'tree' => $tree,
+ 'epoch' => (int)$epoch,
+ );
try {
$message = ArcanistDifferentialCommitMessage::newFromRawCorpus($text);
$id = $message->getRevisionID();
- $branch += array(
- 'epoch' => (int)$epoch,
- 'tree' => $tree,
- 'revisionID' => $id,
- );
+ $branch['revisionID'] = $id;
} catch (ArcanistUsageException $ex) {
// In case of invalid commit message which fails the parsing,
// do nothing.
+ $branch['revisionID'] = null;
}
$branches[$name] = $branch;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 14, 1:08 AM (1 w, 1 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7223648
Default Alt Text
D9620.id23065.diff (1 KB)
Attached To
Mode
D9620: Fix an issue with `arc branch` and very old branches
Attached
Detach File
Event Timeline
Log In to Comment