← Back to team overview

dulwich-users team mailing list archive

[PATCH 32/34] walk: Record last commit yielded by the pq.

 

From: Dave Borowitz <dborowitz@xxxxxxxxxx>

Change-Id: I0faffd0a396e1ce75df3f3da5e5e7db6b37866ee
---
 dulwich/walk.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dulwich/walk.py b/dulwich/walk.py
index 083532e..6bea788 100644
--- a/dulwich/walk.py
+++ b/dulwich/walk.py
@@ -98,6 +98,7 @@ class _CommitTimeQueue(object):
         self._seen = set()
         self._done = set()
         self._min_time = walker.since
+        self._last = None
         self._extra_commits_left = _MAX_EXTRA_COMMITS
         self._is_finished = False
 
@@ -165,6 +166,7 @@ class _CommitTimeQueue(object):
                     break
 
             if not is_excluded:
+                self._last = commit
                 return WalkEntry(self._walker, commit)
         self._is_finished = True
         return None
-- 
1.7.3.1



References