summaryrefslogtreecommitdiff
path: root/test/git/performance/test_commit.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-02 16:41:28 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-02 16:41:28 +0200
commitae5a69f67822d81bbbd8f4af93be68703e730b37 (patch)
tree52201bea881aee06ac3f1cf64fd4d9d30eea7463 /test/git/performance/test_commit.py
parent4e1c89ec97ec90037583e85d0e9e71e9c845a19b (diff)
downloadgitpython-ae5a69f67822d81bbbd8f4af93be68703e730b37.tar.gz
commit: redesigned revlist and commit parsing, commits are always retrieved from their object information directly. This is faster, and resolves issues with the rev-list format and empty commit messages
Adjusted many tests to go with the changes, as they were still mocked. The mock was removed if necessary and replaced by code that actually executes
Diffstat (limited to 'test/git/performance/test_commit.py')
-rw-r--r--test/git/performance/test_commit.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/git/performance/test_commit.py b/test/git/performance/test_commit.py
index c1f8ce59..b4a9d868 100644
--- a/test/git/performance/test_commit.py
+++ b/test/git/performance/test_commit.py
@@ -4,12 +4,12 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-from test.testlib import *
+from lib import *
from git import *
from time import time
import sys
-class TestPerformance(TestBase):
+class TestPerformance(TestBigRepoReadOnly):
# ref with about 100 commits in its history
ref_100 = '0.1.6'
@@ -48,7 +48,7 @@ class TestPerformance(TestBase):
# bound to cat-file parsing performance
nc = 0
st = time()
- for c in self.rorepo.commit(self.ref_100).traverse(branch_first=False):
+ for c in self.gitrepo.commit(self.head_sha_2k).traverse(branch_first=False):
nc += 1
self._query_commit_info(c)
# END for each traversed commit
@@ -59,7 +59,7 @@ class TestPerformance(TestBase):
# bound to stream parsing performance
nc = 0
st = time()
- for c in Commit.iter_items(self.rorepo, self.ref_100):
+ for c in Commit.iter_items(self.gitrepo, self.head_sha_2k):
nc += 1
self._query_commit_info(c)
# END for each traversed commit