diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-04-30 09:57:03 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-04-30 09:57:03 +0200 |
commit | 0d6ceabf5b90e7c0690360fc30774d36644f563c (patch) | |
tree | 0324cacca04f12df94140c98c69f0bc5e4aa91d5 | |
parent | b75c3103a700ac65b6cd18f66e2d0a07cfc09797 (diff) | |
download | gitpython-0d6ceabf5b90e7c0690360fc30774d36644f563c.tar.gz |
Added additional tz_offset testing in performance test to call it more often.
Fixed test which required to be on master to work - it now uses the HEAD symbolic ref instead.
-rw-r--r-- | lib/git/repo.py | 2 | ||||
-rw-r--r-- | test/git/test_commit.py | 2 | ||||
-rw-r--r-- | test/git/test_performance.py | 3 |
3 files changed, 5 insertions, 2 deletions
diff --git a/lib/git/repo.py b/lib/git/repo.py index 58eb6ba1..2beda9be 100644 --- a/lib/git/repo.py +++ b/lib/git/repo.py @@ -427,7 +427,7 @@ class Repo(object): Commits that do not contain that path or the paths will not be returned. ``kwargs`` - Arguments to be passed to git-rev-parse - common ones are + Arguments to be passed to git-rev-list - common ones are max_count and skip Note: to receive only commits between two named revisions, use the diff --git a/test/git/test_commit.py b/test/git/test_commit.py index e8bc078a..48937c93 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -97,7 +97,7 @@ class TestCommit(TestBase): def test_iteration(self): # we can iterate commits - all_commits = Commit.list_items(self.rorepo, 'master') + all_commits = Commit.list_items(self.rorepo, self.rorepo.head) assert all_commits assert all_commits == list(self.rorepo.iter_commits()) diff --git a/test/git/test_performance.py b/test/git/test_performance.py index 588f1e14..72acfcac 100644 --- a/test/git/test_performance.py +++ b/test/git/test_performance.py @@ -13,9 +13,12 @@ class TestPerformance(TestBase): def _query_commit_info(self, c): c.author c.authored_date + c.author_tz_offset c.committer c.committed_date + c.committer_tz_offset c.message + c.parents def test_iteration(self): num_objs = 0 |