#NEWLINE# def compare_branches_tags_commits( self , project_id , from_id , to_id ) : #NEWLINE# #INDENT# 'Compare branches, tags or commits\n\n        :param project_id: The ID of a project\n        :param from_id: the commit sha or branch name\n        :param to_id: the commit sha or branch name\n        :return: commit list and diff between two branches tags or commits provided by name\n        ' #NEWLINE# data = { #NEWLINE# #INDENT# 'from' : from_id , #NEWLINE# 'to' : to_id , #NEWLINE# #UNINDENT# } #NEWLINE# request = requests . get ( '{0}/{1}/repository/compare' . format ( self . projects_url , project_id ) , params = data , verify = self . verify_ssl , auth = self . auth , timeout = self . timeout , headers = self . headers ) #NEWLINE# if ( request . status_code == 200 ) : #NEWLINE# #INDENT# return request . json ( ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False