RCSDIFF does not Function in Windows 2000 PHP4 -solution1

Arturo Portilla Henao arturo@puj.edu.co
Thu, 20 Dec 2001 16:43:51 -0000


hello again,

im already have mentioned this issue, and now i can got one solution,

ok, my solution is a litle solution, chora team can implement another 
solution, better.

RCSDIFF not function in windows 2000 becouse this rcsdiff.exe returns "no 
diferences "  (return 0) when this file is invoked from chora.

Diff.php  CVS_Lib  line 72
// TODO: add options for $hr options - however these may not 
// be compatible with some diffs - avsm

$command = $CVS->conf['paths']['rcsdiff'] . " $options -r$rev1 -
r$rev2 '$fullName' 2>&1";
if (!($diffStream = popen($command, 'r'))) {
   return false;
} else {
.
.

rcsdiff return 1 when this command is invoked from command line,
!!!BUG RCSDIFF,  meanwhile this bug is solved, the solution is implement
the rcsdiff inner chora code.  

ok this problem is mentioned in "TODO":

this is the UGLY solution for windows and may be a general,, im not have much 
time to solveit.


rcsdiff, only checkout version 1 and version 2,, and runs diff.exe  
this is correct?

so..
//******************************************
//******************************************
DIFF.PHP CVS_LIB     LINE 72    WE CAN PUT THIS CODE...

$tmpFile1 = "c:\f1";
$tmpFile2 = "c:\f2";
$co_file1 = $CVS->conf['paths']['co'] . " -p$rev1 $Q$fullName$Q > $tmpFile1";
$co_file2 = $CVS->conf['paths']['co'] . " -p$rev2 $Q$fullName$Q > $tmpFile2";
		
$diff_command = $CVS->conf['paths']['diff'] . " $options $tmpFile1 $tmpFile2 
2>&1 ";
		
popen ($co_file1,'r');        << UGLY 
popen ($co_file2,'r');        << UGLY  I DONT KNOW ABOUT PHP SCRIPT
	
if (!($diffStream = popen($diff_command,'r'))) {
..
..
..


yes,,  need setup  $CVS->conf['paths']['diff'] = "path of diff"
diffs is now working in my Windows 2000 with php4..


Thanks.

Arturo,

pd---------------------
anottations does not working in my Osystem.