Update of /cvsroot/phpcvsview/phpcvsview
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11778
Modified Files:
func_FileHistory.php
Log Message:
Updated support for DIFFs by changing the revision identifier from the date to the actual revision number
Index: func_FileHistory.php
===================================================================
RCS file: /cvsroot/phpcvsview/phpcvsview/func_FileHistory.php,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** func_FileHistory.php 6 Oct 2004 08:40:29 -0000 1.6
--- func_FileHistory.php 1 Feb 2005 07:20:52 -0000 1.7
***************
*** 14,18 ****
function DisplayFileHistory()
{
! global $config, $env;
// Calculate the path from the $env['script_name'] variable.
--- 14,18 ----
function DisplayFileHistory()
{
! global $config, $env, $CVSServer;
// Calculate the path from the $env['script_name'] variable.
***************
*** 52,57 ****
echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)";
echo " (<a href=\"$HREF&fd&dt=$DateTime\">download</a>)";
! echo " (<a href=\"$HREF&df&r1=".strtotime($Revision["date"])."&r2=";
! echo strtotime($CVSServer->FILES[0]["Revisions"][$Revision["PrevRevision"]]["date"])."\">diff to previous</a>)";
echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br />\n";
echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), strtotime(gmdate("M d Y H:i:s")))." ago)<br />\n";
--- 52,59 ----
echo " (<a href=\"$HREF&fv&dt=$DateTime\">view</a>)";
echo " (<a href=\"$HREF&fd&dt=$DateTime\">download</a>)";
! if ($Revision["PrevRevision"] != "") {
! echo " (<a href=\"$HREF&df&r1=".$Revision["Revision"]."&r2=";
! echo $Revision["PrevRevision"]."\">diff to previous</a>)";
! }
echo " (<a href=\"$HREF&fa=".$Revision["Revision"]."\">annotate</a>)<br />\n";
echo "<b>Last Checkin:</b> ".strftime("%A %d %b %Y %T -0000", strtotime($Revision["date"]))." (".CalculateDateDiff(strtotime($Revision["date"]), strtotime(gmdate("M d Y H:i:s")))." ago)<br />\n";
***************
*** 73,76 ****
--- 75,79 ----
echo "Connection Failed.";
}
+ echo GetDiffForm();
echo GetPageFooter();
}
|