Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18872972
D21716.id51740.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
962 B
Referenced Files
None
Subscribers
None
D21716.id51740.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D21716: Update ArcanistMercurialAPI to support getting the current commit ref
Attached
Detach File
Event Timeline
Log In to Comment