def run(id, args = []): # Set up the test repository repo1 = test_api.setup_repos(id, setup) args.append("--prefix") args.append("foo/"); rdump_path = test_api.dump_rsvndump_sub(id, "foo", args) repo2 = test_api.repos_load(id, rdump_path) return test_api.diff_repos(id, repo1, "foo", repo2, "foo")
def run(id, args=[]): # Set up the test repository repo1 = test_api.setup_repos(id, setup) args.append("--prefix") args.append("foo/") rdump_path = test_api.dump_rsvndump_sub(id, "foo", args) repo2 = test_api.repos_load(id, rdump_path) return test_api.diff_repos(id, repo1, "foo", repo2, "foo")
def run(id, args = []): # Set up the test repository repo1 = test_api.setup_repos(id, setup) args.append("--prefix") args.append("dir2/") rdump_path = test_api.dump_rsvndump_incremental_sub(id, "dir2", 1, args) # Because of the prefix, the dump needs to be patched (move prefix construction # to revision 4, so it can be compared with the original one) if "--keep-revnums" in args: test_api.patch(id, rdump_path, test_api.data_dir()+"/"+test_api.name(id)+".keep_revnums.patch") repo2 = test_api.repos_load(id, rdump_path) return test_api.diff_repos(id, repo1, "dir2", repo2, "dir2")
def run(id, args = []): # Set up the test repository repo1 = test_api.setup_repos(id, setup) args.append("--prefix") args.append("dir2/"); rdump_path = test_api.dump_rsvndump_sub(id, "dir2", args) # Because of the prefix, the dump needs to be patched (move prefix construction # to revision 4, so it can be compared with the original one) if "--keep-revnums" in args: test_api.patch(id, rdump_path, test_api.data_dir()+"/"+test_api.name(id)+".keep_revnums.patch") repo2 = test_api.repos_load(id, rdump_path) return test_api.diff_repos(id, repo1, "dir2", repo2, "dir2")