Cheap Web Hosting for Developers

PHP, MySQL, Java, Unix Cheap Web Hosting

186 Chapter 5 Basic Web Application Strategies Automated

Filed under: Web Applications Development With PHP4.0 — webmaster @ 20:21

186 Chapter 5 Basic Web Application Strategies Automated Notifications At this point,Jane will have to inform her colleague again of the merge.As we ve said, CVS cannot replace effective communication within the team. But it can help. The CVS server can be set up to perform a certain action on each commit. Sending email to a mailing list server could be such an action. By setting up a mailing list or alias group for each project, it s easy to broadcast all commit messages, including logs, to all project members. To accomplish this, one of the CVS administrative files, namely the loginfo file, needs to be edited.This file controls how commit information is handled you can send it by mail, but also log it to a file, store it in a database, etc. You can alter the administrative files directly in the system s CVSROOT directory.The recommended way to change them is via CVS, though this way you ll have all the regular features and the safety net of CVS.To start a session,check out the CVSROOT directory: jane@dev:/home/jane/ > cvs checkout CVSROOT Then edit the loginfo file.The first part of a line is a regular expression that s tested against the directory or file being committed. If a match is found, the remainder of the line is the program to be invoked.The program should expect the commit information on standard input.You may also have one line in the file starting with DEFAULT instead of a regular expression:This directive will be considered if no directory is matched.Another special directive is ALL,which will be invoked in all cases.Two examples for such lines: ^phpBook$ /cvs/loginfo_process_phpBook.sh ALL /cvs/loginfo_process_all.sh The first shell script, loginfo_process_phpBook.sh, is only invoked for the phpBook repository.The second script, loginfo_process_all.sh, will be invoked on every commit, regardless of the repository, because it s marked with the ALL keyword. As part of the program to be invoked, a set of special variables can be used to give extended information about the commit.These variables are identified by a preceding percent sign (%), similar to the format declaration in printf(). If more than one variable is used, they must be grouped inside curly braces.The available variables are shown in the following table. Variable Meaning s Filename V Version number before the commit v Version number after the commit As soon as you use one of these variables, another string containing the name of the CVS module is automatically added before the variable.

Note: If you are looking for good and high quality web space to host and run your application check Lunarwebhost Inexpensive Web Hosting services

7 Comments

No comments yet.

RSS feed for comments on this post. TrackBack URI

Sorry, the comment form is closed at this time.

Powered by Cheap Web Hosting