Re: [PHP-DEV] Re: [PHP-CVS] cvs: php4(php_4_0_4) /ext/db php_db.h From: Jon Parise (jon <email protected>)
Date: 12/02/00

On Sun, Dec 03, 2000 at 01:02:13AM -0000, James Moore wrote:

> The commit msg is different.. look at the subject of this email its
> php4(php_4_0_4) rather than just php4. When you are actually about to commit
> I think a CVS status file.c will show any current sticky tags on that file
> (IE it should show php_4_0_4.

It would be nice if the branch were printed in the message body, too.
For example (totally untested):

Index: loginfo.pl
===================================================================
RCS file: /repository/CVSROOT/loginfo.pl,v
retrieving revision 1.36
diff -u -r1.36 loginfo.pl
--- loginfo.pl 2000/10/20 23:57:56 1.36
+++ loginfo.pl 2000/12/03 03:42:32
@@ -191,7 +191,8 @@
         $DAYABBR[$gmtime[6]], $gmtime[3], $MONABBR[$gmtime[4]],
         $gmtime[5] + 1900, $gmtime[2], $gmtime[1], $gmtime[0]);
 
-$tag = $tag ? "($tag)" : '';
+my $subj_tag = $tag ? "($tag)" : '';
+my $body_tag = $tag ? "Tag: $tag\n\n" : '';
 
 no strict; # quiet warnings after here
 
@@ -201,11 +202,12 @@
        "To: $mailto\n".
        $msgid.
        $rfc822date.
- "Subject: cvs: $module$tag $subj\n";
+ "Subject: cvs: $module$subj_tag $subj\n";
 
 my $common_body = "".
        "$cvsuser\t\t".localtime()." EDT\n".
        "$msg".
+ "$body_tag".
        " Log:\n".
        &indent($logmsg,2)."\n";

-- 
Jon Parise (jon <email protected>)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member

-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>