[cvsnt] 2.0.51: commitinfo username

James Kavanagh james.kavanagh at voxsurf.com
Tue Oct 5 10:52:58 BST 2004


Community technical support mailing list was retired 2010 and replaced with a professional technical support team. For assistance please contact: Pre-sales Technical support via email to sales@march-hare.com.


Thanks for pointing me in the right direction Alexandre. I was totally
unaware of this feature even if it was right under my nose so to speak!!
:)

> -----Original Message-----
> From: Alexandre Augusto Drummond Barroso 
> [mailto:adrummond at bdmg.mg.gov.br] 
> Sent: 05 October 2004 00:22
> To: cvsnt at cvsnt.org
> Subject: RE: [cvsnt] 2.0.51: commitinfo username
> 
> 
> I'm curious... What are your necessities above those already 
> present on 
> CVSNT ACLs (http://www.cvsnt.org/manual/Security.html - see "Setting 
> permissions for files and directories" and "Groups of users can be 
> assigned permissions")?
> 
> Regards,
> 
> Alexandre.
> 
> > -----Original Message-----
> > From: cvsnt-bounces at cvsnt.org
> > [mailto:cvsnt-bounces at cvsnt.org]On Behalf
> > Of Bo Berglund
> > Sent: Monday, October 04, 2004 7:51 PM
> > To: cvsnt at cvsnt.org
> > Subject: Re: [cvsnt] 2.0.51: commitinfo username
> > 
> > 
> > On Mon, 4 Oct 2004 18:01:54 +0100, "James Kavanagh" 
> > <james.kavanagh at voxsurf.com> wrote:
> > 
> > >Hi,
> > >
> > >I'm attempting to write a small Java application which
> > performs a similar
> > >function to the cvs_acls.pl script which has been widely 
> distributed. 
> > >Essentially I want to prevent some users from committing
> > files to a release
> > >branch.
> > >I've got past the hurdles of retrieving the filenames etc.
> > but I cannot seem
> > >to obtain the user from anywhere. Calls to
> > System.getProperty("user.name")
> > >come back with "SYSTEM" which is the user that the CVSNT
> > service is running
> > >under.
> > >
> > >1. Can anyone help on this front? Has anyone done this 
> before or am I 
> > >wasting my time :( or..
> > 
> > If you add a $USER parameter to the call line in the 
> commitinfo script 
> > then your script execution will get the commit user as the 
> specified 
> > command line parameter and you can easily parse it out from 
> there. The 
> > $USER is NOT an environment variable, it is detected by 
> CVSNT and gets 
> > replaced by the proper value when your script is called by CVS.
> > 
> > HTH
> > 
> > 
> > /Bo
> > (Bo Berglund, developer in Sweden) 
> > _______________________________________________
> > cvsnt mailing list
> > cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt cvsnt downloads at march-hare.com https://www.march-hare.com/cvspro/en.asp#downcvs @CVSNT on Twitter CVSNT on Facebook
> > 
> _______________________________________________
> cvsnt mailing list
> cvsnt at cvsnt.org http://www.cvsnt.org/cgi-bin/mailman/listinfo/cvsnt cvsnt downloads at march-hare.com https://www.march-hare.com/cvspro/en.asp#downcvs @CVSNT on Twitter CVSNT on Facebook
> 



More information about the cvsnt mailing list
Download the latest CVSNT, TortosieCVS, WinCVS etc. for Windows 8 etc.
@CVSNT on Twitter   CVSNT on Facebook