|
@@ -143,22 +143,26 @@ class _CommitTimeQueue(object):
|
|
|
for parent_id in commit.parents:
|
|
|
self._push(parent_id)
|
|
|
|
|
|
+ reset_extra_commits = True
|
|
|
is_excluded = sha in self._excluded
|
|
|
if is_excluded:
|
|
|
self._exclude_parents(commit)
|
|
|
|
|
|
- if self._min_time is not None:
|
|
|
- if commit.commit_time < self._min_time:
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
- self._extra_commits_left -= 1
|
|
|
- if not self._extra_commits_left:
|
|
|
- break
|
|
|
- else:
|
|
|
-
|
|
|
- self._extra_commits_left = _MAX_EXTRA_COMMITS
|
|
|
+ if (self._min_time is not None and
|
|
|
+ commit.commit_time < self._min_time):
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ reset_extra_commits = False
|
|
|
+
|
|
|
+ if reset_extra_commits:
|
|
|
+
|
|
|
+ self._extra_commits_left = _MAX_EXTRA_COMMITS
|
|
|
+ else:
|
|
|
+ self._extra_commits_left -= 1
|
|
|
+ if not self._extra_commits_left:
|
|
|
+ break
|
|
|
|
|
|
if not is_excluded:
|
|
|
return WalkEntry(self._walker, commit)
|