cvs: CVSROOT / loginfo.pl
| From: | Sascha Schumann | Date: | Sat, 23 Dec 2000 01:12:24 +0000 |
| Subject: | cvs: CVSROOT / loginfo.pl | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-3250@lists.php.net to get a copy of this message | ||
sas Fri Dec 22 17:12:24 2000 EDT
Modified files:
/CVSROOT loginfo.pl
Log:
Put the Branch information on the first Added/Removed/Modified Lines
line.
Index: CVSROOT/loginfo.pl
diff -u CVSROOT/loginfo.pl:1.38 CVSROOT/loginfo.pl:1.39
--- CVSROOT/loginfo.pl:1.38 Sun Dec 3 03:13:14 2000
+++ CVSROOT/loginfo.pl Fri Dec 22 17:12:23 2000
@@ -137,19 +137,25 @@
#print "Building commit email\n";
+my $subj_tag = $tag ? "($tag)" : '';
+my $body_tag = $tag ? "(Branch: $tag)" : '';
+
# build our email
my $msg = "";
if($#added_files ne -1) {
- $msg .= "\n Added files:";
+ $msg .= "\n Added files: $body_tag";
$msg .= &build_list(@added_files);
+ $body_tag = '';
}
if($#removed_files ne -1) {
- $msg .= "\n Removed files:";
+ $msg .= "\n Removed files: $body_tag";
$msg .= &build_list(@removed_files);
+ $body_tag = '';
}
if($#modified_files ne -1) {
- $msg .= "\n Modified files:";
+ $msg .= "\n Modified files: $body_tag";
$msg .= &build_list(@modified_files);
+ $body_tag = '';
}
my $subj = "";
@@ -190,9 +196,6 @@
$DAYABBR[$gmtime[6]], $gmtime[3], $MONABBR[$gmtime[4]],
$gmtime[5] + 1900, $gmtime[2], $gmtime[1], $gmtime[0]);
-my $subj_tag = $tag ? "($tag)" : '';
-my $body_tag = $tag ? "\n Branch: $tag\n" : '';
-
no strict; # quiet warnings after here
my $email;
@@ -205,7 +208,6 @@
my $common_body = "".
"$cvsuser\t\t".localtime()." EDT\n".
- "$body_tag".
"$msg".
" Log:\n".
&indent($logmsg,2)."\n";