#NEWLINE# def commit_to_vcs( repo_type , path , message , user , url ) : #NEWLINE# #INDENT# try : #NEWLINE# #INDENT# obj = globals ( ) [ ( 'CommitTo%s' % repo_type . capitalize ( ) ) ] ( path , message , user , url ) #NEWLINE# return obj . commit ( ) #NEWLINE# #UNINDENT# except CommitToRepositoryException as e : #NEWLINE# #INDENT# log . debug ( ( '%s Commit Error for %s: %s' % ( repo_type . upper ( ) , path , obj ) ) ) #NEWLINE# raise e