def close_svn_review_request(payload, server_url):
 review_id_to_commits_map = defaultdict(list)
 commit_message = payload.get(u'message')
 branch_name = payload.get(u'changeset_url', u'SVN Repository')
 revision = (u'%s %d' % (u'Revision: ', payload.get(u'revision')))
 review_request_id = get_review_request_id(commit_message, server_url, None)
 commit_entry = (u'%s (%s)' % (branch_name, revision))
 review_id_to_commits_map[review_request_id].append(commit_entry)
 close_all_review_requests(review_id_to_commits_map)

def close_svn_review_request ( payload , server_url ) : review_id_to_commits_map = defaultdict ( list ) commit_message = payload . get ( u'message' ) branch_name = payload . get ( u'changeset_url' , u'SVN Repository' ) revision = ( u'%s %d' % ( u'Revision: ' , payload . get ( u'revision' ) ) ) review_request_id = get_review_request_id ( commit_message , server_url , None ) commit_entry = ( u'%s (%s)' % ( branch_name , revision ) ) review_id_to_commits_map [ review_request_id ] . append ( commit_entry ) close_all_review_requests ( review_id_to_commits_map )
closes the review request for an svn repository .