Skip to content

Commit 9cd8d84

Browse files
committed
Break long line, add comment
1 parent 23def2e commit 9cd8d84

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Source/Source.API.php

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,14 @@ function Source_Process_Changesets( $p_changesets, $p_repo=null ) {
347347

348348
# generate a note message
349349
if ( $t_enable_message ) {
350-
$t_message = sprintf( $t_message_template, $t_changeset->branch, $t_changeset->revision, $t_changeset->timestamp, $t_changeset->message, $t_repos[ $t_changeset->repo_id ]->name, $t_changeset->id );
350+
$t_message = sprintf( $t_message_template,
351+
$t_changeset->branch,
352+
$t_changeset->revision,
353+
$t_changeset->timestamp,
354+
$t_changeset->message,
355+
$t_repos[ $t_changeset->repo_id ]->name,
356+
$t_changeset->id
357+
);
351358
} else {
352359
$t_message = '';
353360
}
@@ -402,6 +409,8 @@ function Source_Process_Changesets( $p_changesets, $p_repo=null ) {
402409

403410
if ( $t_update ) {
404411
if ( $t_message ) {
412+
# Add a note without sending mail, since the notification will
413+
# be sent by the subsequent bug update.
405414
bugnote_add( $t_bug_id, $t_message, '0:00', $t_private, 0, '', null, false );
406415
}
407416
$t_bug->update();

0 commit comments

Comments
 (0)