Changeset 1467

Show
Ignore:
Timestamp:
06/18/08 09:20:44 (7 months ago)
Author:
astormont
Message:

Simplified svn-commits.py

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • sandbox/astormont/svn-commits.py

    r1438 r1467  
    1515    sys.exit( 1 ) 
    1616 
    17 # Why does python not have this? 
    18 def in_array( array, value ): 
    19     for item in array: 
    20         if item == value: 
    21             return True 
    22     return False 
    23  
    2417# Extract all the commits from svn log 
    2518svn_log = commands.getoutput("svn log") 
     
    3124# Extract all the authors from commits 
    3225for commit in svn_commits: 
    33     if not in_array( svn_authors, commit[1] )
     26    if commit[1] not in svn_authors
    3427        svn_authors.append( commit[1] ) 
    3528