From a1e80445ad5cb6da4c0070d7cb8af89da3b0803b Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 4 Jun 2010 14:41:15 +0200 Subject: initial version of new odb design to facilitate a channel based multi-threading implementation of all odb functions --- test/git/test_commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_commit.py') diff --git a/test/git/test_commit.py b/test/git/test_commit.py index a5f184e6..e914b9a7 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -31,7 +31,7 @@ def assert_commit_serialization(rwrepo, commit_id, print_performance_info=False) streamlen = stream.tell() stream.seek(0) - csha = rwrepo.odb.to_object(Commit.type, streamlen, stream) + csha = rwrepo.odb.store(Commit.type, streamlen, stream) assert csha == cm.sha nc = Commit(rwrepo, Commit.NULL_HEX_SHA, cm.tree.sha, @@ -45,7 +45,7 @@ def assert_commit_serialization(rwrepo, commit_id, print_performance_info=False) ns += 1 streamlen = stream.tell() stream.seek(0) - nc.sha = rwrepo.odb.to_object(Commit.type, streamlen, stream) + nc.sha = rwrepo.odb.store(Commit.type, streamlen, stream) # if it worked, we have exactly the same contents ! assert nc.sha == cm.sha -- cgit v1.2.1