cvs: peardoc /scripts revcheck_pear.php

From: Date: Sat, 24 Feb 2007 15:58:06 +0000
Subject: cvs: peardoc /scripts revcheck_pear.php
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-9469@lists.php.net to get a copy of this message
yannick Sat Feb 24 15:58:06 2007 UTC Modified files: /peardoc/scripts revcheck_pear.php Log: fix uri #spot by moosh http://cvs.php.net/viewvc.cgi/peardoc/scripts/revcheck_pear.php?r1=1.8&r2=1.9&diff_format=u Index: peardoc/scripts/revcheck_pear.php diff -u peardoc/scripts/revcheck_pear.php:1.8 peardoc/scripts/revcheck_pear.php:1.9 --- peardoc/scripts/revcheck_pear.php:1.8 Fri Feb 9 16:51:13 2007 +++ peardoc/scripts/revcheck_pear.php Sat Feb 24 15:58:06 2007 @@ -20,7 +20,7 @@ # | Jan Fabry <cheezy@php.net> | # | Thierry Bothorel <thierry_bo@php.net> | # +----------------------------------------------------------------------+ -# $Id: revcheck_pear.php,v 1.8 2007/02/09 16:51:13 alexmerz Exp $ +# $Id: revcheck_pear.php,v 1.9 2007/02/24 15:58:06 yannick Exp $ # EN-Revision: 1.35 Maintainer: thierry_bo Status: ready */ error_reporting (E_ALL ^ E_NOTICE); @@ -86,9 +86,9 @@ REV_WIP => "wip", ); -// Option for the link to cvs.php.net: normal: "&f=h" -// long diff: "&f=h&num=10", unified (text): "&f=u" -define("CVS_OPT", "&amp;f=h&amp;num=10"); +// Option for the link to cvs.php.net +define("CVS_OPT", "&amp;view=patch"); +define('CVS_OPT_NOWS', ''); // Initializing variables from parameters $LANG = $argv[1]; @@ -853,11 +853,14 @@ // If we have a 'numeric' revision diff and it is not zero, // make a link to the CVS repository's diff script if ($file["revision"][2] != "n/a" && $file["revision"][2] !== 0) { - $file["short_name"] = "<a href=\"http://cvs.php.net/diff.php/" . - preg_replace( "'^".$DOCDIR."'", "peardoc/", $file["full_name"]) . - "?r1=" . $file["revision"][1] . - "&amp;r2=" . $file["revision"][0] . - CVS_OPT . "\">" . $file["short_name"] . "</a>"; + $url = 'http://cvs.php.net/viewcvs.cgi/' . + preg_replace( "'^".$DOCDIR."'", 'peardoc/', $file['full_name']) . + '?r1=' . $file['revision'][1] . '&amp;r2=' . $file['revision'][0]; + $url_ws = $url . CVS_OPT_NOWS; + $url .= CVS_OPT; + + $file['short_name'] = '<a href="' . $url . '">'. $file["short_name"] . '</a> '. + '<a href="' . $url_ws . '">[NoWS]</a>'; } // Guess the new directory from the full name of the file

« previous php.pear.doc (#9469) next »