def process_test(community, infile, masterproject, project): """ Runs a test import from a particular file @param community: dbobject.Community @param infile: string of file to read in @param masterproject: string of name of master project to use @param project: string of name of project to use """ masterproj = get_master_project(community, masterproject) proj = get_project(project, masterproj, "::DUMMY::" + project) # note -- this is just a guess, I'm not 100% certain that cvsps is latin-1 patchsets = cvsimporter.process_data(codecs.open(infile, "r", "latin-1").read()) log.info("dump file successfully read") process_patch_stream(patchsets, proj, community)
def get_patchstream(): """ Returns information on a stream of patches """ return process_data(STREAM_PATCHES)