Page MenuHomePhabricator

D21716.id51740.diff
No OneTemporary

D21716.id51740.diff

diff --git a/src/repository/api/ArcanistMercurialAPI.php b/src/repository/api/ArcanistMercurialAPI.php
--- a/src/repository/api/ArcanistMercurialAPI.php
+++ b/src/repository/api/ArcanistMercurialAPI.php
@@ -50,6 +50,13 @@
return $this->getPath('.hg');
}
+ protected function newCurrentCommitRef() {
+ $current_commit_hash = $this->getCanonicalRevisionName('.');
+
+ return id(new ArcanistCommitRef())
+ ->setCommitHash($current_commit_hash);
+ }
+
public function getSourceControlBaseRevision() {
return $this->getCanonicalRevisionName($this->getBaseCommit());
}
diff --git a/src/workflow/ArcanistAmendWorkflow.php b/src/workflow/ArcanistAmendWorkflow.php
--- a/src/workflow/ArcanistAmendWorkflow.php
+++ b/src/workflow/ArcanistAmendWorkflow.php
@@ -164,8 +164,6 @@
->execute();
}
- return;
-
if ($api->getUncommittedChanges()) {
// TODO: Make this class of error show the uncommitted changes.

File Metadata

Mime Type
text/plain
Expires
Thu, Nov 6, 7:18 AM (4 w, 15 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
11421595
Default Alt Text
D21716.id51740.diff (962 B)

Event Timeline