[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Validate html file before to commit.

From: Thornley, David
Subject: RE: Validate html file before to commit.
Date: Thu, 3 Jan 2002 10:53:54 -0600

> -----Original Message-----
> From: Franck Marchand [mailto:address@hidden
> Sent: Thursday, January 03, 2002 5:14 AM
> To: address@hidden
> Subject: Validate html file before to commit.
> Hi all
> Someone has a script to check a file before to commit it in cvs ?
> I would like to do something like that :
> CommitInfo file :
> DEFAULT $CVSROOT/validate-html
> I need a file which be able to read the new file and check it 
> if it contains
> correct html tag.
Do you have a validation program?  You can use that, with some

One thing I ran into when I tried adding complicated validation to
the CommitInfo file was that the time needed to commit slowed to
what would be unacceptable limits if committing in multiple directories.

If validating the file is going to take inconveniently long, you might
want to use LogInfo to validate it later, and then send out some
sort of email, such as a notification to the manager or a termination
notice or something like that.

Seriously, if you can't trust your employees to follow process, you
should get new employees.  Establish that employees validate first,
then commit, and test if you like after the commit (because people
do make mistakes), and that should be enough.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]