[cvsnt] administrative file for cvs add

Dulat Simon Simon.Dulat at Micronas.com
Mon Nov 21 13:36:49 GMT 2005


Thanks Bo and Tony for your quick answers!
Unfortunately I guess I am on the wrong mailing list. Actually I am not
running CVSNT but CVS in a Unix/Linux environment. On CVS there is no
precommand script, or is there?
Do you know by chance of a workaround on CVS?

Thanks a lot,
Simon

> -----Original Message-----
> From: Bo Berglund [mailto:Bo.Berglund at system3r.se] 
> Sent: Monday, November 21, 2005 11:59 AM
> To: Dulat Simon; cvsnt at cvsnt.org
> Subject: RE: [cvsnt] administrative file for cvs add
> 
> Use the precommand script and examine the arguments.
> If you exit prtecommand with a non-zero exit code CVSNT will abort the
> operation.
> You can even print a message to standard out and it will be 
> visible for
> the user why the command failed.
> See in the CVSNT helpfile (search for precommand).
> 
> Best regards,
> 
> Bo Berglund
> 
> 
> -----Original Message-----
> From: cvsnt-bounces at cvsnt.org 
> [mailto:cvsnt-bounces at cvsnt.org] On Behalf
> Of Dulat Simon
> Sent: den 21 november 2005 11:40
> To: cvsnt at cvsnt.org
> Subject: [cvsnt] administrative file for cvs add
> 
> Hi all,
> I posted the message below already, but got no answer so far. 
> So I will
> try and put the question somewhat different.
> Is there an administrative file which controls a cvs add command just
> like commitinfo controls a cvs commit command?
> It would be great if someone could help me.
> Thanks a lot.
> Simon
> 
> > -----Original Message-----
> > From: cvsnt-bounces at cvsnt.org 
> > [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of Dulat Simon
> > Sent: Friday, November 18, 2005 3:49 PM
> > To: cvsnt at cvsnt.org
> > Subject: [cvsnt] prevent binaries to be added to the repository
> > 
> > Hi there,
> > it would be great if someone could help me out.
> > I would like to prevent users from being able to add binary 
> > files to the
> > repository.
> > I tried the following with CVSROOT/commitinfo:
> > commitinfo checks if a file contains one of the following endings:
> > *.obj, *.exe, ... and aborts commit if a file with one of 
> > those endings
> > is found.
> > This works fine for new files being added to the repository, 
> > or I should
> > better say this works fine for new files being committed to the
> > repository.
> > Problem is: this approach doesn't work if a user tries to remove an
> > existing binary file from the repository.
> > A solution would be to prevent the initial adding of the 
> file (not the
> > following commit after a file was added). Is there a 
> (administrative)
> > file which controls "cvs add"?
> > 
> > Thanks a lot in advance for your help!
> > 
> > Cheers,
> > Simon
> > _______________________________________________
> > cvsnt mailing list
> > cvsnt at cvsnt.org
> > http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
> > 
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
> 

> -----Original Message-----
> From: cvsnt-bounces at cvsnt.org 
> [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of Tony Hoyle
> Sent: Monday, November 21, 2005 12:14 PM
> To: cvsnt at cvsnt.org
> Subject: Re: [cvsnt] administrative file for cvs add
> 
> Bo Berglund wrote:
> > Use the precommand script and examine the arguments.
> > If you exit prtecommand with a non-zero exit code CVSNT 
> will abort the
> > operation.
> > You can even print a message to standard out and it will be 
> visible for
> > the user why the command failed.
> > See in the CVSNT helpfile (search for precommand).
> > 
> Note that because of the way 'add' works with directories, it creates 
> administrative files before contacting the server - so failing a 
> directory add is not recommended.
> 
> Tony
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org
> http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt
> 



More information about the cvsnt mailing list