[cvsnt] Changing Commit Dialog

Gabriel Genellina gagsl-cvsnt at yahoo.com.ar
Mon Sep 18 21:57:39 BST 2006

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.

At Monday 18/9/2006 11:50, Bryan Leber wrote:

>OVERVIEW: The logon logo has been changed
>I don't know if this is how it is suppose to work(i.e. put what is in
>the comment file that I made also) or what, but im not sure how I can
>parse through this and make sure that just the FEATURE_AFFECTED and
>OVERVIEW are there, because if they are left out the FEATURE_AFFECTED
>and OVERVIEW words are still printed, so I assume that it would show
>that it is not empty.

This is actually a Python question. You should check that there are 
text AFTER that words. Something like this:

faOK = ovOK = False
for line in lines:
     line = line.strip()
     if line.startswith('FEATURE_AFFECTED:'): faOK = line[17:] != ''
     if line.startswith('OVERVIEW:'): ovOK = line[9:] != ''
if not faOK:
   print "Missing FEATURE AFFECTED"
   ret = 1
elif not ovOK:
   print "Missing OVERVIEW"
   ret = 1
else: ret=0

Gabriel Genellina
Softlab SRL 

Preguntá. Respondé. Descubrí.
Todo lo que querías saber, y lo que ni imaginabas,
está en Yahoo! Respuestas (Beta).
¡Probalo ya! 

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