diff --git a/src/workflow/ArcanistBaseWorkflow.php b/src/workflow/ArcanistBaseWorkflow.php index 421e2506..6cf14902 100644 --- a/src/workflow/ArcanistBaseWorkflow.php +++ b/src/workflow/ArcanistBaseWorkflow.php @@ -871,10 +871,11 @@ abstract class ArcanistBaseWorkflow extends Phobject { if (!$commits) { return false; } - $commit = reset($commits); + $commit = reset($commits); $message = ArcanistDifferentialCommitMessage::newFromRawCorpus( $commit['message']); + if ($message->getGitSVNBaseRevision()) { return false; } @@ -883,6 +884,10 @@ abstract class ArcanistBaseWorkflow extends Phobject { return false; } + if ($message->getRevisionID() && $this->getArgument('create')) { + return false; + } + // TODO: Check commits since tracking branch. If empty then return false. $repository = $this->loadProjectRepository();