[phpcvsview-cvs-updates] phpcvsview phpcvs.php,1.7,1.8
Status: Pre-Alpha
Brought to you by:
bcheesem
From: Brian C. <bch...@us...> - 2004-09-29 10:58:09
|
Update of /cvsroot/phpcvsview/phpcvsview In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1640 Modified Files: phpcvs.php Log Message: Moved initialisation of $ALLOWED_RESPONSES to declaration. Added constructor parameters previously present. Index: phpcvs.php =================================================================== RCS file: /cvsroot/phpcvsview/phpcvsview/phpcvs.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** phpcvs.php 26 Sep 2004 12:59:39 -0000 1.7 --- phpcvs.php 29 Sep 2004 10:57:59 -0000 1.8 *************** *** 24,30 **** var $CVS_VALID_REQUESTS; // List of valid requests the PServer accepts. var $SOCKET; // The socket handle for communicating with the PServer. ! var $ALLOWED_RESPONSES = array(); // A hashed array of responses that we are capable of ! // processing and the contents is the name of the function ! // to process it through. var $ALLOWED_REQUESTS = array(); // A hashed array of requests we are allowed to send. var $FINAL_RESPONSE; // A state variable for tracking whether the final response --- 24,63 ---- var $CVS_VALID_REQUESTS; // List of valid requests the PServer accepts. var $SOCKET; // The socket handle for communicating with the PServer. ! var $ALLOWED_RESPONSES = array( // A hashed array of responses that we are capable of ! // processing and the contents is the name of the function ! // to process it through. ! "ok" => "processOk", ! "error" => "processError", ! "Valid-requests" => "processValidRequests", ! "Checked-in" => "processCheckedIn", ! "New-entry" => "processNewEntry", ! "Checksum" => "processChecksum", ! "Copy-file" => "processCopyFile", ! "Updated" => "processUpdated", ! "Created" => "processCreated", ! "Update-existing" => "processUpdateExisting", ! "Merged" => "processMerged", ! "Patched" => "processPatched", ! "Rcs-diff" => "processRcsDiff", ! "Mode" => "processMode", ! "Mod-time" => "processModTime", ! "Removed" => "processRemoved", ! "Remove-entry" => "processRemoveEntry", ! "Set-static-directory" => "processSetStaticDirectory", ! "Clear-static-directory" => "processClearStaticDirectory", ! "Set-sticky" => "processSetSticky", ! "Clear-sticky" => "processClearSticky", ! "Template" => "processTemplate", ! "Set-checkin-prog" => "processSetCheckinProg", ! "Set-update-prog" => "processSetUpdateProg", ! "Notified" => "processNotified", ! "Module-expansion" => "processModuleExpansion", ! "Wrapper-rcsOption" => "processWrapperRcsOption", ! "M" => "processM", ! "Mbinary" => "processMBinary", ! "E" => "processE", ! "F" => "processF", ! "MT" => "processMT"); ! var $ALLOWED_REQUESTS = array(); // A hashed array of requests we are allowed to send. var $FINAL_RESPONSE; // A state variable for tracking whether the final response *************** *** 114,158 **** * **/ ! function CVS_PServer() { ! $this->CVS_REPOSITORY = ''; ! $this->CVS_PSERVER = ''; $this->CVS_PORT = 2401; ! $this->CVS_USERNAME = ''; ! $this->CVS_PASSWORD = ''; $this->SOCKET = new Net_Socket(); - - $this->ALLOWED_RESPONSES["ok"] = "processOk"; - $this->ALLOWED_RESPONSES["error"] = "processError"; - $this->ALLOWED_RESPONSES["Valid-requests"] = "processValidRequests"; - $this->ALLOWED_RESPONSES["Checked-in"] = "processCheckedIn"; - $this->ALLOWED_RESPONSES["New-entry"] = "processNewEntry"; - $this->ALLOWED_RESPONSES["Checksum"] = "processChecksum"; - $this->ALLOWED_RESPONSES["Copy-file"] = "processCopyFile"; - $this->ALLOWED_RESPONSES["Updated"] = "processUpdated"; - $this->ALLOWED_RESPONSES["Created"] = "processCreated"; - $this->ALLOWED_RESPONSES["Update-existing"] = "processUpdateExisting"; - $this->ALLOWED_RESPONSES["Merged"] = "processMerged"; - $this->ALLOWED_RESPONSES["Patched"] = "processPatched"; - $this->ALLOWED_RESPONSES["Rcs-diff"] = "processRcsDiff"; - $this->ALLOWED_RESPONSES["Mode"] = "processMode"; - $this->ALLOWED_RESPONSES["Mod-time"] = "processModTime"; - $this->ALLOWED_RESPONSES["Removed"] = "processRemoved"; - $this->ALLOWED_RESPONSES["Remove-entry"] = "processRemoveEntry"; - $this->ALLOWED_RESPONSES["Set-static-directory"] = "processSetStaticDirectory"; - $this->ALLOWED_RESPONSES["Clear-static-directory"] = "processClearStaticDirectory"; - $this->ALLOWED_RESPONSES["Set-sticky"] = "processSetSticky"; - $this->ALLOWED_RESPONSES["Clear-sticky"] = "processClearSticky"; - $this->ALLOWED_RESPONSES["Template"] = "processTemplate"; - $this->ALLOWED_RESPONSES["Set-checkin-prog"] = "processSetCheckinProg"; - $this->ALLOWED_RESPONSES["Set-update-prog"] = "processSetUpdateProg"; - $this->ALLOWED_RESPONSES["Notified"] = "processNotified"; - $this->ALLOWED_RESPONSES["Module-expansion"] = "processModuleExpansion"; - $this->ALLOWED_RESPONSES["Wrapper-rcsOption"] = "processWrapperRcsOption"; - $this->ALLOWED_RESPONSES["M"] = "processM"; - $this->ALLOWED_RESPONSES["Mbinary"] = "processMBinary"; - $this->ALLOWED_RESPONSES["E"] = "processE"; - $this->ALLOWED_RESPONSES["F"] = "processF"; - $this->ALLOWED_RESPONSES["MT"] = "processMT"; } --- 147,161 ---- * **/ ! function CVS_PServer( $CVSROOT = "/cvsroot/p/ph/phpcvsview", ! $PServer = "cvs.sourceforge.net", ! $UserName = "anonymous", ! $Password = "") { ! $this->CVS_REPOSITORY = $CVSROOT; ! $this->CVS_PSERVER = $PServer; $this->CVS_PORT = 2401; ! $this->CVS_USERNAME = $UserName; ! $this->CVS_PASSWORD = Password; $this->SOCKET = new Net_Socket(); } *************** *** 654,659 **** } - // Deal with the blank lines. - // Get any lines not already processed and assume they are the log message. if (!$LineProcessed) { --- 657,660 ---- *************** *** 661,665 **** $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["LogMessage"] .= "\n"; } ! $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["LogMessage"] .= trim($Line); } } --- 662,669 ---- $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["LogMessage"] .= "\n"; } ! $Line = trim($Line); ! if ($Line != "") { ! $this->FILES[$FileCount]["Revisions"]["$CurrentRevision"]["LogMessage"] .= trim($Line); ! } } } |