[SCM] build.samba.org - branch master updated

Jelmer Vernooij jelmer at samba.org
Sat Nov 13 06:23:52 MST 2010


The branch, master has been updated
       via  de84a30 Provide GitBranch.authors.
      from  7fd815d fix git root.

http://gitweb.samba.org/?p=build-farm.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit de84a3080173e5771765edec98f8a1783368a483
Author: Jelmer Vernooij <jelmer at samba.org>
Date:   Sat Nov 13 14:23:47 2010 +0100

    Provide GitBranch.authors.

-----------------------------------------------------------------------

Summary of changes:
 buildfarm/history.py            |    2 +-
 buildfarm/tests/test_history.py |    7 +++++++
 2 files changed, 8 insertions(+), 1 deletions(-)


Changeset truncated at 500 lines:

diff --git a/buildfarm/history.py b/buildfarm/history.py
index ffe392f..1c96120 100644
--- a/buildfarm/history.py
+++ b/buildfarm/history.py
@@ -57,7 +57,7 @@ class Revision(object):
         self.removed = removed
 
 
-class GitBranch(object):
+class GitBranch(Branch):
 
     def __init__(self, path, branch="master"):
         self.repo = Repo(path)
diff --git a/buildfarm/tests/test_history.py b/buildfarm/tests/test_history.py
index 29d7c1a..137c0b5 100644
--- a/buildfarm/tests/test_history.py
+++ b/buildfarm/tests/test_history.py
@@ -46,3 +46,10 @@ class GitBranchTests(TestCase):
         entry, diff = list(branch.diff(revid))
         self.assertEquals("message", entry.message)
         self.assertEquals("", diff)
+
+    def test_authors_empty(self):
+        branch = GitBranch(self.repo.path, "master")
+        self.assertEquals(set(), branch.authors())
+        revid = self.repo.do_commit("message", committer="Jelmer Vernooij <jelmer at samba.org>")
+        self.assertEquals(set(["Jelmer Vernooij <jelmer at samba.org>"]),
+            branch.authors())


-- 
build.samba.org


More information about the samba-cvs mailing list