Changeset View
Changeset View
Standalone View
Standalone View
src/repository/api/ArcanistMercurialAPI.php
Show First 20 Lines • Show All 772 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
$text = $this->getCommitMessage('.'); | $text = $this->getCommitMessage('.'); | ||||
$message = ArcanistDifferentialCommitMessage::newFromRawCorpus( | $message = ArcanistDifferentialCommitMessage::newFromRawCorpus( | ||||
$text); | $text); | ||||
if ($message->getRevisionID()) { | if ($message->getRevisionID()) { | ||||
$this->setBaseCommitExplanation( | $this->setBaseCommitExplanation( | ||||
pht( | pht( | ||||
"'%s' has been amended with 'Differential Revision:', ". | "'%s' has been amended with 'Differential Revision:', ". | ||||
"as specified by '%s' in your %s 'base' configuration.", | "as specified by '%s' in your %s 'base' configuration.", | ||||
'.'. | '.', | ||||
$rule, | $rule, | ||||
$source)); | $source)); | ||||
// NOTE: This should be safe because Mercurial doesn't support | // NOTE: This should be safe because Mercurial doesn't support | ||||
// amend until 2.2. | // amend until 2.2. | ||||
return $this->getCanonicalRevisionName('.^'); | return $this->getCanonicalRevisionName('.^'); | ||||
} | } | ||||
break; | break; | ||||
case 'bookmark': | case 'bookmark': | ||||
▲ Show 20 Lines • Show All 272 Lines • Show Last 20 Lines |