View Issue Details

IDProjectCategoryView StatusLast Update
0006324mantisbtfeaturepublic2010-09-19 03:11
Reporterizhekov Assigned Todhx  
PrioritynormalSeverityfeatureReproducibilityalways
Status closedResolutionwon't fix 
Summary0006324: More CVS integration
Description

You have integration with CVS via loginfo and with CVSWeb also.
When committing files a bugnote is added to the issue. It's good in this bugnote a link to the CVSWeb to be added also.
I made this by modifying your checkin.php.
Lines marked with --> are lines added by me.
The result you can see in the images I attached.

Additional Information

<XMP>
--------------------- part of checkin.php ---------------------

--> $cnt = 0;
--> $cvs_root = "/var/lib/cvs/cvsroot";
while ( ( $t_line = fgets( STDIN, 1024 ) ) ) {
--> if ($cnt == 0) $cvs_path = substr(trim($t_line), 10 + strlen($cvs_root));
--> if ($cnt == 4) $cvs_file = trim($t_line);
--> $cnt++;
$t_comment .= $t_line;
if ( preg_match_all( $t_commit_regexp, $t_line, $t_matches ) ) {
for ( $i = 0; $i < count( $t_matches[0] ); ++$i ) {
$t_issues[] = $t_matches[1][$i];
}
}
}
--> $t_comment .= "\r\ncvs:" . $cvs_path . "/" . $cvs_file;


</XMP>

TagsNo tags attached.
Attached Files
img1.gif (51,708 bytes)   
img1.gif (51,708 bytes)   
img2.gif (97,076 bytes)   
img2.gif (97,076 bytes)   
img3.jpg (41,667 bytes)   
img3.jpg (41,667 bytes)   

Relationships

related to 0011732 closeddhx Remove built-in source code integration support 
has duplicate 0006323 closedryandesign More CVS integration 

Activities

izhekov

izhekov

2005-10-10 02:18

reporter   ~0011481

This one works better when more than one file is committed.

--------------- modified part of checkin.php -----------------

    $cnt = 0;
    $cvs_root = "/var/lib/cvs/cvsroot";
    while ( ( $t_line = fgets( STDIN, 1024 ) ) ) {
            if ($cnt == 0) $cvs_path = substr(trim($t_line), 10 + strlen($cvs_root));
            if ($cnt == 4) {
                $cvs_files = explode(" ", trim($t_line));
            }
            $cnt++;
            $t_comment .= $t_line;
            if ( preg_match_all( $t_commit_regexp, $t_line, $t_matches ) ) {
                    for ( $i = 0; $i < count( $t_matches[0] ); ++$i ) {
                            $t_issues[] = $t_matches[1][$i];
                    }
            }

            if ( preg_match_all( $t_commit_fixed_regexp, $t_line, $t_matches) ) {
                    for ( $i = 0; $i < count( $t_matches[0] ); ++$i ) {
                            $t_fixed_issues[] = $t_matches[1][$i];
                    }
            }
    }
    foreach ($cvs_files as $cvs_file)
        $t_comment .= "\ncvs:" . $cvs_path . "/" . trim($cvs_file) . " ";
dhx

dhx

2010-03-31 04:25

reporter   ~0024961

Won't fix as this old source code integration support is being dropped in favour of using a more modern plugin approach with the SourceIntegration plugin.

Refer to 0011732 for more details and feedback.