CVS test pred commitem

Robert Vojta robert na v0jta.net
Úterý Prosinec 4 20:37:31 CET 2001


"Ondřej Surý" <sury.ondrej na globe.cz> writes:

> Jste me nepochopil...  konkretne chci kontrolovat .php a .php3 skripty
> commitovane do CVS pustenim php4 -l <script>, coz zkontroluje syntaxi a
> pokud tento test neprojde tak tomu nedovolit commit.

  cvs co CVSROOT
  cd CVSROOT

vojta na alpha:~/cvs/CVSROOT$ cat commitinfo 
# The "commitinfo" file is used to control pre-commit checks.
# The filter on the right is invoked with the repository and a list 
# of files to check.  A non-zero exit of the filter program will 
# cause the commit to be aborted.
#
# The first entry on a line is a regular expression which is tested
# against the directory that the change is being committed to, relative
# to the $CVSROOT.  For the first match that is found, then the remainder
# of the line is the name of the filter to run.
#
# If the repository name does not match any of the regular expressions in this
# file, the "DEFAULT" line is used, if it is specified.
#
# If the name "ALL" appears as a regular expression it is always used
# in addition to the first matching regex or "DEFAULT".
vojta na alpha:~/cvs/CVSROOT$

  zmenit commitinfo, dat 'cvs commit' a pak Vam na vsechny commity bude
poustet to co mu reknete a chovat se bude podle navratoveho kodu ...

-- 
Robert V0jta

  The abuse of greatness is when it disjoins remorse from power
                                      -- William Shakespeare, "Julius Caesar"


Další informace o konferenci Linux