Page MenuHomePhabricator

D16897.diff
No OneTemporary

D16897.diff

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

Mime Type
text/plain
Expires
Tue, May 21, 11:32 AM (3 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6288074
Default Alt Text
D16897.diff (1 KB)

Event Timeline