Summary: If there's other revision in last commit message and I said `--create` then it is clear that I want to create a new commit.
Test Plan:
$ arc diff --create # in dirty working copy on top of my open revision
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D5078
if (!$commits) {
return false;
}
- $commit = reset($commits);
+ $commit = reset($commits);
$message = ArcanistDifferentialCommitMessage::newFromRawCorpus(
$commit['message']);
+
if ($message->getGitSVNBaseRevision()) {
return false;
}
return false;
}
+ if ($message->getRevisionID() && $this->getArgument('create')) {
+ return false;
+ }
+
// TODO: Check commits since tracking branch. If empty then return false.
$repository = $this->loadProjectRepository();