Skip to content

Commit 3cc0662

Browse files
committed
Test case for Walker simplify_first_parent
1 parent 19b15ed commit 3cc0662

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_revwalk.py

+4
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ def test_sort(self):
102102
walker.sort(GIT_SORT_TIME | GIT_SORT_REVERSE)
103103
self.assertEqual([x.hex for x in walker], list(reversed(log)))
104104

105+
def test_simplify_first_parent(self):
106+
walker = self.repo.walk(log[0], GIT_SORT_TIME)
107+
walker.simplify_first_parent()
108+
self.assertEqual(len(list(walker)), 3)
105109

106110
if __name__ == '__main__':
107111
unittest.main()

0 commit comments

Comments
 (0)