diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2009-10-15 18:07:04 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2009-10-15 18:07:04 +0200 |
commit | f2df1f56cccab13d5c92abbc6b18be725e7b4833 (patch) | |
tree | 3e3760e5b46095458cf75446330ba2fc25fa23e5 /test/git/test_performance.py | |
parent | 58d692e2a1d7e3894dbed68efbcf7166d6ec3fb7 (diff) | |
parent | b67bd4c730273a9b6cce49a8444fb54e654de540 (diff) | |
download | gitpython-f2df1f56cccab13d5c92abbc6b18be725e7b4833.tar.gz |
Merge branch 'repo_interface' into improvements
* repo_interface:
Improved archive function by allowing it to directly write to an output stream - previously it would cache everything to memory and try to provide zipping functionality itself
repo: made init and clone methods less specific, previously they wanted to do it 'barely' only. New method names closely follow the default git command names
repo.commit_delta_base: removed
Object can now create objects of the proper type in case one attempts to create an object directly - this feature is used in several places now, allowing for additional type-checking
repo: removed commits_between but added a note about how this can be achieved using the iter_commits method; reorganized methods within the type as a start for more interface changes
Added Commit.iter_parents to iterate all parents
repo: removed a few methods because of redundancy or because it will be obsolete once the interface overhaul is finished. This commit is just intermediate
Diffstat (limited to 'test/git/test_performance.py')
-rw-r--r-- | test/git/test_performance.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/git/test_performance.py b/test/git/test_performance.py index 96f13a2e..77567515 100644 --- a/test/git/test_performance.py +++ b/test/git/test_performance.py @@ -21,7 +21,7 @@ class TestPerformance(object): # return quite a lot of commits, we just take one and hence abort the operation st = time() - for c in self.repo.commits(): + for c in self.repo.iter_commits('0.1.6'): num_commits += 1 c.author c.authored_date |