From 7ba46b8fba511fdc9b8890c36a6d941d9f2798fe Mon Sep 17 00:00:00 2001 From: Sebastian Thiel Date: Fri, 27 Nov 2009 11:57:21 +0100 Subject: Fixed issue with commit traversal due to missing visit_once in the traversal method, improved code performance by disabling the visit-once flag by default for trees, which by nature are not recursive --- test/git/test_commit.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/git/test_commit.py') diff --git a/test/git/test_commit.py b/test/git/test_commit.py index bb2b22ee..e757e148 100644 --- a/test/git/test_commit.py +++ b/test/git/test_commit.py @@ -68,9 +68,9 @@ class TestCommit(TestBase): assert bfirst.next() == p10 # at some point, both iterations should stop - assert list(dfirst)[-1] == first assert list(bfirst)[-1] == first - + stoptraverse = self.rorepo.commit("254d04aa3180eb8b8daf7b7ff25f010cd69b4e7d").traverse() + list(stoptraverse) # ignore self assert start.traverse(ignore_self=False).next() == start -- cgit v1.2.1