Re: commitinfor and cvswrapper

Matthew Ogilvie <[email protected]>
Newsgroups gmane.comp.version-control.cvs.general
Message-ID <[email protected]>
Rez P writes:
> 
> Our CVS server is running on Linux and users use CVS.exe or WinCVS on
> Windows client machines. Is there any way to block users from adding or
> committing certain files or file patterns to our CVS repository?

Depending on exactly which client(s) your users use (and how), it might
help significantly to simply include a line like "[Tt]humbs.db" (without
the quotes) in the directory's committed ".cvsignore" file.  Some
GUI clients (like wincvs) will automatically exclude ignored files
from file listings in at least some modes, making them much harder
to add by accident.

Limitations:
  - Does not help if your users are doing "cvs add *".
  - Does not help much if your users are regularly creating new
    image directories, which each need their own .cvsignore
    file.  You might be able to use the repository-wide
    CVSROOT/cvsignore file instead, but it wouldn't surprise me
    if most GUI clients don't know how to check it when doing
    file listings (not sure).

--
Matthew Ogilvie   [[email protected]]
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.