ChangeSet ID: 31327
CVSROOT: /opt/cvs-commit
Module name: appdb
Changes by: wineowner(a)winehq.org 2007/08/10 21:20:51
Modified files:
include : util.php
Log message:
Chris Morgan <cmorgan(a)alum.wpi.edu>
Bugzilla now has an id column that we can order by. Fix wine version ordering and remove order
processing code.
Patch: http://cvs.winehq.org/patch.py?id=31327
Old revision New revision Changes Path
1.102 1.103 +2 -26 appdb/include/util.php
Index: appdb/include/util.php
diff -u -p appdb/include/util.php:1.102 appdb/include/util.php:1.103
--- appdb/include/util.php:1.102 11 Aug 2007 2:20:51 -0000
+++ appdb/include/util.php 11 Aug 2007 2:20:51 -0000
@@ -159,42 +159,18 @@ function make_bugzilla_version_list($sVa
$sTable = BUGZILLA_DB.".versions";
$sWhere = "WHERE product_id=".BUGZILLA_PRODUCT_ID;
- $sQuery = "SELECT value FROM $sTable $sWhere";
+ $sQuery = "SELECT value FROM $sTable $sWhere ORDER BY id desc limit 6";
$hResult = query_bugzilladb($sQuery);
if(!$hResult) return;
- // NOTE: perform some version list pruning
- // - Reverse the order, we want the newest entries first
- // and we can't use 'order by' since we have no column
- // to order by, but the entries should come out in the
- // order they were added
- // - Trim the list, we don't want every version of wine ever released and
- // we don't want the "CVS" version included since we can never figure out
- // what version of Wine any given "CVS" version is
- //
- // TODO: if we ever get a reasonable way to order the list replace this code
- // with that
+ // build the list of versions
$aVersions = array();
while(list($sValue) = query_fetch_row($hResult))
{
- // exclude unspecified versions and the "CVS" version
- if(($sValue != "unspecified") && ($sValue != "CVS"))
$aVersions[] = $sValue;
}
- // now reverse the array order since the oldest
- // versions were added first
- $aVersions = array_reverse($aVersions);
-
- // now trim off all but the last X versions
- $iVersionsToKeep = 6;
- $aVersions = array_slice($aVersions, 0, $iVersionsToKeep);
-
- // DONE TRIMMING VERSIONS
- /////////////////////////
-
-
// build the selection array
$sStr.= "<select name='$sVarname'>\n";
$sStr.= "<option value=\"\">Choose ...</option>\n";
ChangeSet ID: 31326
CVSROOT: /opt/cvs-commit
Module name: lostwages
Changes by: julliard(a)winehq.org 2007/08/10 15:14:10
Modified files:
templates/en : git.template cvs.template
Log message:
Update the information about the bugzilla repository.
Patch: http://cvs.winehq.org/patch.py?id=31326
Old revision New revision Changes Path
1.5 1.6 +11 -4 lostwages/templates/en/git.template
1.28 1.29 +1 -2 lostwages/templates/en/cvs.template
Index: lostwages/templates/en/git.template
diff -u -p lostwages/templates/en/git.template:1.5 lostwages/templates/en/git.template:1.6
--- lostwages/templates/en/git.template:1.5 10 Aug 2007 20:14:10 -0000
+++ lostwages/templates/en/git.template 10 Aug 2007 20:14:10 -0000
@@ -81,7 +81,7 @@ git rebase origin
<p> Direct access from the web to the complete Git tree is also possible, using
<a href="http://www.kernel.org/pub/software/scm/gitweb/">gitweb</a> package:</p>
<ul>
- <li><a href="http://source.winehq.org/git">source.winehq.org/git</a>,
+ <li><a href="http://source.winehq.org/git/wine.git">source.winehq.org/git/wine.git</a>,
on the primary Git repository</li>
</ul>
@@ -89,13 +89,20 @@ git rebase origin
<h1 id="modules">Other modules available from WineHQ</h1>
-<p>The WineHQ CVS server makes a couple of other things available.</p>
+<p>In addition to the main source tree, the WineHQ Git server also
+exports the following modules:</p>
+
+<ul>
+ <li><a href="http://source.winehq.org/git/bugzilla.git">bugzilla.git</a> -- source for the bugzilla version used on the WineHQ site</li>
+ <li><a href="http://source.winehq.org/git/tools.git">tools.git</a> -- tools used on the WineHQ site</li>
+</ul>
+
+<p>The WineHQ CVS server exports the following modules:</p>
<ul>
<li><tt>lostwages</tt> -- source for the WineHQ web site</li>
<li><tt>tools</tt> -- tools used on the WineHQ site</li>
<li><tt>appdb</tt> -- source for the application database web site</li>
- <li><tt>bugzilla</tt> -- source for the bugzilla version used on the WineHQ site</li>
</ul>
<p>To login to the CVS server, run in a terminal:</p>
@@ -122,4 +129,4 @@ in a terminal run in that directory:</p>
<p><code>git cvsimport -v -k -d :pserver:anonymous@wine.cvs.sourceforge.net:/cvsroot/wine docs</code></p>
-<p>But be aware that this can take quite some time.</p>
\ No newline at end of file
+<p>But be aware that this can take quite some time.</p>
Index: lostwages/templates/en/cvs.template
diff -u -p lostwages/templates/en/cvs.template:1.28 lostwages/templates/en/cvs.template:1.29
--- lostwages/templates/en/cvs.template:1.28 10 Aug 2007 20:14:10 -0000
+++ lostwages/templates/en/cvs.template 10 Aug 2007 20:14:10 -0000
@@ -45,7 +45,6 @@ cvs login
<li><tt>lostwages</tt> -- source for the WineHQ web site</li>
<li><tt>tools</tt> -- tools used on the WineHQ site</li>
<li><tt>appdb</tt> -- source for the application database web site</li>
- <li><tt>bugzilla</tt> -- source for the bugzilla version used on the WineHQ site</li>
</ul>
<hr />
@@ -74,4 +73,4 @@ cvs login
<ul>
<li><a href="http://cvs.winehq.org/cvsweb">cvs.winehq.org/cvsweb</a>, on the
primary CVS repository.</li>
-</ul>
\ No newline at end of file
+</ul>