#NEWLINE# def __init__( self , conf ) : #NEWLINE# #INDENT# self . gitCommitsList = [ ] #NEWLINE# self . gitCommitMessagesByHash = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . gitDatesByHash = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . versionsByGitHash = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . gitHistoryByVersion = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# self . __repo = conf [ 'RepositoryUrl' ] #NEWLINE# self . __directory = conf [ 'Directory' ] #NEWLINE# self . __repoX = '' #NEWLINE# self . __versionTagRegex = '^[0-9]+\\.[0-9]+\\.[0-9]+\\.[0-9]+$' #NEWLINE# self . __excludeCommitsWithMessageMatchingRegex = None #NEWLINE# if ( sys . getrecursionlimit ( ) < self . __recursionLimit ) : #NEWLINE# #INDENT# print ( 'Increasing the stack size for recursive calls from {0} to {1}' . format ( sys . getrecursionlimit ( ) , self . __recursionLimit ) ) #NEWLINE# sys . setrecursionlimit ( self . __recursionLimit ) #NEWLINE# #UNINDENT# if ( 'ExcludeCommitsWithMessageMatchingRegex' in conf ) : #NEWLINE# #INDENT# self . __excludeCommitsWithMessageMatchingRegex = conf [ 'ExcludeCommitsWithMessageMatchingRegex' ] #NEWLINE# #UNINDENT# if ( 'VersionTagRegex' in conf ) : #NEWLINE# #INDENT# self . __versionTagRegex = conf [ 'VersionTagRegex' ] #NEWLINE# #UNINDENT# if ( 'Remote' in conf ) : #NEWLINE# #INDENT# self . __remote = conf [ 'Remote' ] #NEWLINE# #UNINDENT# if ( 'Branch' in conf ) : #NEWLINE# #INDENT# b = conf [ 'Branch' ] #NEWLINE# pos = b . find ( '/' ) #NEWLINE# if ( pos >= 0 ) : #NEWLINE# #INDENT# self . __remote = b [ : pos ] #NEWLINE# self . __branch = b [ ( pos + 1 ) : ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . __branch = b