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.
Here's what I use in my loginfo script; Probably you need something similar #----------------------------------------------------------------------- -------------------- # parseStdin #----------------------------------------------------------------------- -------------------- def parseStdin (): siLines = sys.stdin.readlines() for line in siLines: # print 'stdIn line: ' + line[:-1] reposLine = re.match ("Update of (.*)", line) if reposLine: .... -----Original Message----- From: cvsnt-bounces at cvsnt.org [mailto:cvsnt-bounces at cvsnt.org] On Behalf Of Marlon van den Berg Sent: Thursday, June 24, 2004 5:53 AM To: 'Pat Galea' Cc: 'CVSNT' Subject: RE: [cvsnt] Help on commitinfo file Pat Galea wrote: > The filenames are passed on standard input, not as parameters. > > From the commitinfo file: > > # The "commitinfo" file is used to control pre-commit checks. # The > filter on the right is invoked with the repository name. A list # of > files to check is passed to the standard input of the script. > > > I don't know if that's your only problem. You should be getting the > module name as the first parameter. I did see that to in the commitinfo file, but when I try the read stdin in my python script, no data is received at all. But it might be that I'm doing it wrong. The code I use is: stdin_argv = sys.stdin.read().split(' ') Unfortunately, the 'stdin_argv' list is empty after this command. I would expect this to work, but it's the first time for me to read something from standard input, so... What am I doing wrong? Regards, Marlon _______________________________________________ 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