[SCM] Samba Shared Repository - branch master updated

Stefan Metzmacher metze at samba.org
Mon Sep 24 07:28:02 MDT 2012


The branch, master has been updated
       via  df48092 script/autobuild.py: set the default for --log-base to the current gitroot
      from  67230c4 build: Fix detection of quotas on macos

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


- Log -----------------------------------------------------------------
commit df48092a23d7193d3a0f70f5089ec3fbee87a96b
Author: Stefan Metzmacher <metze at samba.org>
Date:   Mon Sep 24 11:53:22 2012 +0200

    script/autobuild.py: set the default for --log-base to the current gitroot
    
    metze
    
    Autobuild-User(master): Stefan Metzmacher <metze at samba.org>
    Autobuild-Date(master): Mon Sep 24 15:27:16 CEST 2012 on sn-devel-104

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

Summary of changes:
 script/autobuild.py |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)


Changeset truncated at 500 lines:

diff --git a/script/autobuild.py b/script/autobuild.py
index 12656c1..efef2f4 100755
--- a/script/autobuild.py
+++ b/script/autobuild.py
@@ -453,6 +453,10 @@ def push_to(push_url, push_branch = "master"):
 
 def_testbase = os.getenv("AUTOBUILD_TESTBASE", "/memdisk/%s" % os.getenv('USER'))
 
+gitroot = find_git_root()
+if gitroot is None:
+    raise Exception("Failed to find git root")
+
 parser = OptionParser()
 parser.add_option("", "--tail", help="show output while running", default=False, action="store_true")
 parser.add_option("", "--keeplogs", help="keep logs", default=False, action="store_true")
@@ -481,13 +485,13 @@ parser.add_option("", "--daemon", help="daemonize after initial setup",
 parser.add_option("", "--branch", help="the branch to work on (default=master)",
                   default="master", type='str')
 parser.add_option("", "--log-base", help="location where the logs can be found (default=cwd)",
-                  default=None, type='str')
+                  default=gitroot, type='str')
 
 def email_failure(status, failed_task, failed_stage, failed_tag, errstr, log_base=None):
     '''send an email to options.email about the failure'''
     user = os.getenv("USER")
     if log_base is None:
-        log_base = "http://git.samba.org/%s/samba-autobuild" % user
+        log_base = gitroot
     text = '''
 Dear Developer,
 
@@ -531,7 +535,7 @@ def email_success(log_base=None):
     '''send an email to options.email about a successful build'''
     user = os.getenv("USER")
     if log_base is None:
-        log_base = "http://git.samba.org/%s/samba-autobuild" % user
+        log_base = gitroot
     text = '''
 Dear Developer,
 
@@ -574,10 +578,6 @@ if options.retry:
 testbase = "%s/b%u" % (options.testbase, os.getpid())
 test_master = "%s/master" % testbase
 
-gitroot = find_git_root()
-if gitroot is None:
-    raise Exception("Failed to find git root")
-
 # get the top commit message, for emails
 top_commit_msg = run_cmd("git log -1", dir=gitroot, output=True)
 


-- 
Samba Shared Repository


More information about the samba-cvs mailing list