[SCM] build.samba.org - branch master updated
Jelmer Vernooij
jelmer at samba.org
Mon Nov 22 17:16:27 MST 2010
The branch, master has been updated
via 565a91e Avoid visiting nodes more than once.
from 624e578 kill makefile.pl.
http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit 565a91eade5493ba02266e8e0ac4eee5a376aee0
Author: Jelmer Vernooij <jelmer at samba.org>
Date: Tue Nov 23 01:15:29 2010 +0100
Avoid visiting nodes more than once.
-----------------------------------------------------------------------
Summary of changes:
buildfarm/history.py | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/buildfarm/history.py b/buildfarm/history.py
index 44bd4dc..1d00b75 100644
--- a/buildfarm/history.py
+++ b/buildfarm/history.py
@@ -69,6 +69,8 @@ class GitBranch(Branch):
message=commit.message)
def log(self, from_rev=None, exclude_revs=None, limit=None):
+ if exclude_revs is None:
+ exclude_revs = set()
if from_rev is None:
try:
commit = self.repo["refs/heads/%s" % self.branch]
@@ -84,11 +86,13 @@ class GitBranch(Branch):
done.add(commit.id)
if len(done) >= limit:
return
+ exclude_revs.add(commit.id)
# FIXME: Add sorted by commit_time
for p in commit.parents:
- if exclude_revs is not None and p in exclude_revs:
+ if p in exclude_revs:
continue
pending_commits.append(p)
+ exclude_revs.add(p)
def changes_summary(self, revision):
commit = self.repo[revision]
--
build.samba.org
More information about the samba-cvs
mailing list