Changeset 1467
- Timestamp:
- 06/18/08 09:20:44 (7 months ago)
- Files:
-
- sandbox/astormont/svn-commits.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
sandbox/astormont/svn-commits.py
r1438 r1467 15 15 sys.exit( 1 ) 16 16 17 # Why does python not have this?18 def in_array( array, value ):19 for item in array:20 if item == value:21 return True22 return False23 24 17 # Extract all the commits from svn log 25 18 svn_log = commands.getoutput("svn log") … … 31 24 # Extract all the authors from commits 32 25 for commit in svn_commits: 33 if not in_array( svn_authors, commit[1] ):26 if commit[1] not in svn_authors: 34 27 svn_authors.append( commit[1] ) 35 28
