info-cvs
[Top][All Lists]
Advanced

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

Re: adding/committing files


From: Mark D. Baushke
Subject: Re: adding/committing files
Date: Tue, 08 Apr 2003 04:18:50 -0700

Christian Andersson <address@hidden> writes:

> Hi there, I have a small question...
> 
> I have some tools that generate files, these files should preferable
> not be put in cvs, they should always be generated.. In these files I
> ahve some text that I can use to identify if the file has been
> generated.
> 
> the questions I have regarding this, is IF I want the cvs-system to
> block these kind of files from beeing commited into the cvs
> repository, is this a cvs-server handling or should it be a cvs client
> handling (or perheps even both, as a safeguard?)

Write a script to run via the commitinfo trigger to check the file being
committed and exit with a non-zero return code if it detects someone
trying to commit one of your generated files.
 
> and my second question is, how do I set this up with a standard cvs
> server? which files do I have to modify? does there exist any ready
> scripts for this? etc..

Read about it here: http://www.cvshome.org/docs/manual/cvs_18.html#SEC165
Examples exist in the contrib directory for rejecting a commit for various
reasons. See the commit_prep file for example code.
 
> this migth be really simple question, so please be forgiving :-)
> 
> /Christian Andersson

        Good luck,
        -- Mark




reply via email to

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