summaryrefslogtreecommitdiff
path: root/test/git/test_commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-04 14:41:15 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-04 14:41:15 +0200
commita1e80445ad5cb6da4c0070d7cb8af89da3b0803b (patch)
treeff94069b9d49d5a06576a0838a1bbde1e8c992ae /test/git/test_commit.py
parentb01ca6a3e4ae9d944d799743c8ff774e2a7a82b6 (diff)
downloadgitpython-a1e80445ad5cb6da4c0070d7cb8af89da3b0803b.tar.gz
initial version of new odb design to facilitate a channel based multi-threading implementation of all odb functions
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r--test/git/test_commit.py4
1 files changed, 2 insertions, 2 deletions
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