#NEWLINE# def run( self ) : #NEWLINE# #INDENT# from citools.mongo import get_database_connection #NEWLINE# collection = get_database_connection ( hostname = self . mongodb_host , port = self . mongodb_port , database = self . mongodb_database , username = self . mongodb_username , password = self . mongodb_password ) [ self . mongodb_collection ] #NEWLINE# changeset = get_last_revision ( collection , repository_uri = self . repository_uri ) #NEWLINE# data = retrieve_repository_metadata ( changeset , repository_uri = self . repository_uri ) #NEWLINE# store_repository_metadata ( collection , data )