Skip to content

Commit 0d6ceab

Browse files
committed
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.
1 parent b75c310 commit 0d6ceab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

lib/git/repo.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ def iter_commits(self, rev=None, paths='', **kwargs):
427427
Commits that do not contain that path or the paths will not be returned.
428428
429429
``kwargs``
430-
Arguments to be passed to git-rev-parse - common ones are
430+
Arguments to be passed to git-rev-list - common ones are
431431
max_count and skip
432432
433433
Note: to receive only commits between two named revisions, use the

test/git/test_commit.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_traversal(self):
9797

9898
def test_iteration(self):
9999
# we can iterate commits
100-
all_commits = Commit.list_items(self.rorepo, 'master')
100+
all_commits = Commit.list_items(self.rorepo, self.rorepo.head)
101101
assert all_commits
102102
assert all_commits == list(self.rorepo.iter_commits())
103103

test/git/test_performance.py

+3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,12 @@ class TestPerformance(TestBase):
1313
def _query_commit_info(self, c):
1414
c.author
1515
c.authored_date
16+
c.author_tz_offset
1617
c.committer
1718
c.committed_date
19+
c.committer_tz_offset
1820
c.message
21+
c.parents
1922

2023
def test_iteration(self):
2124
num_objs = 0

0 commit comments

Comments
 (0)