Re: Block a file by Commitinfo?

Yaron Yogev <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Organization http://groups.google.com
Message-ID <[email protected]>
On Jul 15, 7:40 am, Rez P <[email protected]> wrote:
> Hello everyone
>
> Is there any way to prevent users or developers from uploading and checking in certain files into cvs?  I was reading the somewhat ambiguous examples on ximbiot and doesn't look I could do this.  I would like to block Windows thumbs.db and desktop.ini files from uploading to the server.

Hello Rez,

There are many pre-commit validations that one can think of.
One of them is banning commit of specific files. Another is checking
for unwanted content (e.g. -d debug flag for Perl CGI files).

There is more than one way you can choose for doing this:
1) Add a line in commitinfo per each banned file
2) From commitinfo call a script or application with the directory
path & name of commited file (and perhaps committed version), and let
it do the validation. This is the method we use in Jungo.

HTH,
--
Yaron Yogev
IT Software Developer
Jungo Software Technologies
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.