Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15423219
D16897.id40675.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
D16897.id40675.diff
View Options
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -587,17 +587,20 @@
'differential.createrevision',
$revision);
- $revised_message = $conduit->callMethodSynchronous(
- 'differential.getcommitmessage',
- array(
- 'revision_id' => $result['revisionid'],
- ));
-
if ($this->shouldAmend()) {
$repository_api = $this->getRepositoryAPI();
if ($repository_api->supportsAmend()) {
echo pht('Updating commit message...')."\n";
+ $revised_message = $conduit->callMethodSynchronous(
+ 'differential.getcommitmessage',
+ array(
+ 'revision_id' => $result['revisionid'],
+ ));
$repository_api->amendCommit($revised_message);
+
+ // The above updates the commit object; update the record on
+ // the diff.
+ $this->updateLocalDiffProperty();
} else {
echo pht(
'Commit message was not amended. Amending commit message is '.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 23, 2:02 PM (2 d, 22 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7709769
Default Alt Text
D16897.id40675.diff (1 KB)
Attached To
Mode
D16897: Update the "local:commits" property after amending
Attached
Detach File
Event Timeline
Log In to Comment