Login | Register
My pages Projects Community openCollabNet

Discussions > cvs > CVS update: /kamikaze-qscm/src/kamikaze-qscm/db/, /kamikaze-qscm/src/kamikaze-qscm/hooks/, /kamikaze-qscm/src/kamikaze-qscm/html/

kamikaze-qscm
Discussion topic

Hide all messages in topic

All messages in topic

CVS update: /kamikaze-qscm/src/kamikaze-qscm/db/, /kamikaze-qscm/src/kamikaze-qscm/hooks/, /kamikaze-qscm/src/kamikaze-qscm/html/

Reply

Author jduprey
Full name John Duprey
Date 2004-09-21 20:35:19 PDT
Message User: jduprey
Date: 04/09/21 20:35:19

Modified:
 /kamikaze-qscm/src/k​amikaze-qscm/db/
  createdb.sql, resource.sql
 /kamikaze-qscm/src/k​amikaze-qscm/hooks/
  commit2db.pl
 /kamikaze-qscm/src/k​amikaze-qscm/html/
  query.php

Log:
 Issue number: 3 4 5 6 8 9
 Obtained from:
 Submitted by:
 Reviewed by: jduprey
 

File Changes:

Directory: /kamikaze-qscm/src/k​amikaze-qscm/db/
====================​====================​=======

File [changed]: createdb.sql
Url: http://kamikaze-qscm​.tigris.org/source/b​rowse/kamikaze-qscm/​src/kamikaze-qscm/db​/createdb.sql?r1=1.1​&r2=1.2
Delta lines: +1 -1
-------------------
--- createdb.sql 21 Sep 2004 04:25:15 -0000 1.1
+++ createdb.sql 22 Sep 2004 03:35:18 -0000 1.2
@@ -5,7 +5,7 @@
 SOURCE repository.sql;
 SOURCE revision.sql;
 SOURCE resource.sql;
-SOURCE commitlog.sql;
+
 
 
 

File [changed]: resource.sql
Url: http://kamikaze-qscm​.tigris.org/source/b​rowse/kamikaze-qscm/​src/kamikaze-qscm/db​/resource.sql?r1=1.1​&r2=1.2
Delta lines: +1 -1
-------------------
--- resource.sql 21 Sep 2004 04:25:15 -0000 1.1
+++ resource.sql 22 Sep 2004 03:35:18 -0000 1.2
@@ -5,6 +5,6 @@
   rep_id int(11) NOT NULL default '0',
   resource VARCHAR(255) NOT NULL,
   action CHAR(1) DEFAULT '-',
- PRIMARY KEY(rev_id, rep_id,resource ),
+ PRIMARY KEY(rev_id, rep_id,resource, action ),
   KEY(id)
 ) TYPE=InnoDB

Directory: /kamikaze-qscm/src/k​amikaze-qscm/hooks/
====================​====================​==========

File [changed]: commit2db.pl
Url: http://kamikaze-qscm​.tigris.org/source/b​rowse/kamikaze-qscm/​src/kamikaze-qscm/ho​oks/commit2db.pl?r1=​1.1&r2=1.2
Delta lines: +21 -0
--------------------
--- commit2db.pl 21 Sep 2004 04:25:15 -0000 1.1
+++ commit2db.pl 22 Sep 2004 03:35:18 -0000 1.2
@@ -46,6 +46,11 @@
            &read_from_proce​ss($svnlook, 'youngest', $repos);
        my $latestRev = shift @youngestRevLines;
 
+ if( $latestRev eq "failed with this output" )
+ {
+ die( "Failed to find the latest revision: $latestRev" );
+ }
+
        print("Rebuilding commit log info for $repos revisions 1 - $latestRev.\n");
        for( my $i = 1; $i <= $latestRev; $i++ )
        {
@@ -69,6 +74,22 @@
    my $date = shift @svnlooklines;
    shift @svnlooklines;
    my @log = map { "$_\n" } @svnlooklines;
+
+ if( $author eq "failed with this output" )
+ {
+ warn( "Failed to get information about this revision: $rev." );
+ return(1);
+ }
+ if( 0 == length($author) )
+ {
+ warn( "Missing user/author for revision $rev, using \"svn_anon\"" );
+ $author = "svn_anon";
+ }
+ if( 254 < length($author) )
+ {
+ warn( "\"$author\" user/author truncated to the first 254 chars for revision $rev." );
+ $author = substr( $author, 0, 254 );
+ }
    
    # Figure out what directories have changed using svnlook.
    my @dirschanged = &read_from_proce​ss($svnlook, 'dirs-changed', $repos,

Directory: /kamikaze-qscm/src/k​amikaze-qscm/html/
====================​====================​=========

File [changed]: query.php
Url: http://kamikaze-qscm​.tigris.org/source/b​rowse/kamikaze-qscm/​src/kamikaze-qscm/ht​ml/query.php?r1=1.1​&r2=1.2
Delta lines: +14 -12
---------------------
--- query.php 21 Sep 2004 04:25:15 -0000 1.1
+++ query.php 22 Sep 2004 03:35:19 -0000 1.2
@@ -426,12 +426,12 @@
       <FORM name="svnquery" action="index.php">
         <FIELDSET>
           <LEGEND title="Search subversion repostiories for commit information">Kami​kaze</LEGEND>
- <TABLE width="280">
+ <TABLE width="330">
             <TR>
               <TD valign="top">
                   <FIELDSET>
                 <LEGEND title="Select one or more repositories to search. **ALL** to search all listed repositories">Rep​ository</LEGEND​>
- <SELECT multiple height="3" name="repository[]">
+ <SELECT multiple size="5" name="repository[]">
 END;
     foreach( $this->repositories as $k => $v )
     {
@@ -448,7 +448,7 @@
               <TD>
                   <FIELDSET>
                 <LEGEND>User​</LEGEND>
- <SELECT multiple height="3" name="user[]">
+ <SELECT multiple size="5" name="user[]">
 END;
     foreach( $this->users as $k => $v )
     {
@@ -670,7 +670,7 @@
 }
 
     function displayQueryResultsStats()
-{
+ {
         if( 0 == count( $this->parsedResults ) )
         {
                 $this->parseResults();
@@ -691,12 +691,14 @@
         {
                 foreach( $this->relevantUsers as $repos => $user )
                 {
- list($userName, $count) = each($user);
+ while(list($userName, $count) = each($user))
+ {
                         $userCount++;
- $userList = $userList . "$userName/$repos/$count, ";
+ $userList = $userList . "$userName@$repos ($count revisions), ";
                         $reposList = $reposList . "$repos, ";
                 }
         }
+ }
         print( "<LI>$userCount authors: $userList</LI>\n" );
         print( "<LI>" . count($this->relevantUsers) . " repositories: $reposList</LI>" );
         print( "<LI>" . $this->relevantRevs . " total revisions</LI>\n" );
@@ -727,7 +729,7 @@
         print( "" );
 
 
-}
+ }
 
     function PopulateUsersAndRepo​sitoriesFromDB()
         {
@@ -811,15 +813,15 @@
         foreach( $this->parsedResults as $repos => $revisions )
                 {
                         print( "<a name=\"results\"​></a>\n" );
- print "<TABLE >";
+ print "<TABLE width=600>";
                         foreach( $revisions as $rev => $revInfo )
                         {
                                 print "<TR valign=top><TD​>$repos</TD​><TD>";
                                 print "<TABLE >";
                                 print "<TR valign=top><TD​>Revision: </TD><TD​>$rev</TD>​</TR>";
- print "<TR valign=top><TD>Date: </TD><TD>" . $revInfo["date"] . "</TD></TR>";
- print "<TR valign=top><TD>User: </TD><TD>" . $revInfo["user"] . "</TD></TR>";
- print "<TR valign=top><TD​>Log:</TD>​<TD>" . $revInfo["log"] . "</TD></TR>";
+ print "<TR valign=top><TD>Date: </TD><TD>" . htmlspecialchars($r​evInfo["date"]) . "</TD></TR>";
+ print "<TR valign=top><TD>User: </TD><TD>" . htmlspecialchars($r​evInfo["user"]) . "</TD></TR>";
+ print "<TR valign=top><TD​>Log:</TD>​<TD>" . str_replace( "\n", "<BR>", htmlspecialchars($r​evInfo["log"])) . "</TD></TR>";
                                 print "<TR valign=top><TD​></TD><T​D>";
                                         print "<TABLE >";
                                         foreach( $revInfo["resources"] as $resource )




--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: cvs-unsubscribe@kami​kaze-qscm.tigris.org​
For additional commands, e-mail: cvs-help@kamikaze-qs​cm.tigris.org
Messages per page: