# This program is free software; you can redistribute and/or modify it # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. import sys from CvsntLoginfo import CvsntLoginfo from ProjectConfig import ProjectConfig # all 'intelligence' is implemented in the CvsntLoginfo class config = ProjectConfig() loginfo = CvsntLoginfo(config) callNo = -1 try: callNo = int(sys.argv[1]) except: print 'Usage: replay_loginfo <callNo>' sys.exit(-1) # create the databases createdb = False # set to false once the database file is created if createdb: loginfo.db_check_create_calls() loginfo.db_check_create_changeset() # retrieve raw info on a previous loginfo_hook call from the database try: loginfo.get_raw_info_from_db(callNo) except:
# This program is free software; you can redistribute and/or modify it # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. import os from CvsntLoginfo import CvsntLoginfo from ProjectConfig import ProjectConfig # all 'intelligence' is implemented in the CvsntLoginfo class config = ProjectConfig() loginfo = CvsntLoginfo(config) # create the databases if not os.path.exists(config.call_db): loginfo.db_check_create_calls() if not os.path.exists(config.changeset_db): loginfo.db_check_create_changeset()