diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-02 12:30:33 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-02 12:51:05 +0200 |
commit | 8c1a87d11df666d308d14e4ae7ee0e9d614296b6 (patch) | |
tree | 87481ab28367db496886a3801bda37227c10f7ed /test/git/test_commit.py | |
parent | df0892351a394d768489b5647d47b73c24d3ef5f (diff) | |
download | gitpython-8c1a87d11df666d308d14e4ae7ee0e9d614296b6.tar.gz |
commit: refactored existing code to decode commits from streams - performance is slightly better
git.cmd: added method to provide access to the content stream directly. This is more efficient if large objects are handled, if it is actually used
test.helpers: removed unnecessary code
Diffstat (limited to 'test/git/test_commit.py')
-rw-r--r-- | test/git/test_commit.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/test_commit.py b/test/git/test_commit.py index 48937c93..28b407ac 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -129,7 +129,7 @@ class TestCommit(TestBase): bisect_all=True) assert_true(git.called) - commits = Commit._iter_from_process_or_stream(self.rorepo, ListProcessAdapter(revs), True) + commits = Commit._iter_from_process_or_stream(self.rorepo, StringProcessAdapter(revs), True) expected_ids = ( 'cf37099ea8d1d8c7fbf9b6d12d7ec0249d3acb8b', '33ebe7acec14b25c5f84f35a664803fcab2f7781', |