$revision['id'] = $message->getRevisionID();
$this->revisionID = $revision['id'];
- $update_message = $this->getUpdateMessage();
+ $update_message = $this->getUpdateMessage($revision['fields']);
$revision['message'] = $update_message;
$future = $conduit->callMethod(
foreach ($included as $k => $commit) {
$included[$k] = ' '.$commit;
}
+ $in_branch = '';
+ if (!$this->isRawDiffSource()) {
+ $in_branch = ' in branch '.$this->getRepositoryAPI()->getBranchName();
+ }
$included = array_merge(
array(
"",
- "Included commits:",
+ "Included commits{$in_branch}:",
"",
),
$included,
/**
* @task message
*/
- private function getUpdateMessage() {
+ private function getUpdateMessage(array $fields) {
$comments = $this->getArgument('message');
if (strlen($comments)) {
return $comments;
$template =
rtrim($comments).
"\n\n".
+ "# Updating D{$fields['revisionID']}: {$fields['title']}\n".
+ "#\n".
"# Enter a brief description of the changes included in this update.\n".
"# The first line is used as subject, next lines as comment.\n".
"#\n".