Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0d6ceab

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 parentb75c310 commit0d6ceab

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

‎lib/git/repo.py

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ def test_traversal(self):
9797

9898
deftest_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
assertall_commits
102102
assertall_commits==list(self.rorepo.iter_commits())
103103

‎test/git/test_performance.py

Lines changed: 3 additions & 0 deletions
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
deftest_iteration(self):
2124
num_objs=0

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp