You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@gump.apache.org by le...@apache.org on 2005/07/07 19:48:53 UTC

svn commit: r209624 - in /gump/branches/Gump3: gump pygump/python/gump/config.py pygump/python/main.py

Author: leosimons
Date: Thu Jul  7 10:48:52 2005
New Revision: 209624

URL: http://svn.apache.org/viewcvs?rev=209624&view=rev
Log:
Fix help for 'run' and make running dynagumper optional

Modified:
    gump/branches/Gump3/gump
    gump/branches/Gump3/pygump/python/gump/config.py
    gump/branches/Gump3/pygump/python/main.py

Modified: gump/branches/Gump3/gump
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/gump?rev=209624&r1=209623&r2=209624&view=diff
==============================================================================
--- gump/branches/Gump3/gump (original)
+++ gump/branches/Gump3/gump Thu Jul  7 10:48:52 2005
@@ -118,7 +118,7 @@
       echo "
 Run pygump.
 "
-      do_run "from main import print_help; print_help()" $@
+      run -h
       ;;
     kill)
       echo "

Modified: gump/branches/Gump3/pygump/python/gump/config.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/gump/config.py?rev=209624&r1=209623&r2=209624&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/gump/config.py (original)
+++ gump/branches/Gump3/pygump/python/gump/config.py Thu Jul  7 10:48:52 2005
@@ -163,11 +163,12 @@
     # TODO: append more plugins here...
     post_process_plugins.append(TimerPlugin("run_end"))
     
-    from gump.plugins.dynagumper import Dynagumper
-    dblog = get_logger(config, "util.db")
-    db = get_db(dblog,config)
-    dynagumplog = get_logger(config, "plugin.dynagumper")
-    post_process_plugins.append(Dynagumper(db, dynagumplog))
+    if config.do_fill_database:
+        from gump.plugins.dynagumper import Dynagumper
+        dblog = get_logger(config, "util.db")
+        db = get_db(dblog,config)
+        dynagumplog = get_logger(config, "plugin.dynagumper")
+        post_process_plugins.append(Dynagumper(db, dynagumplog))
     
     reportlog = get_logger(config, "plugin.logger")
     from gump.plugins.logreporter import OutputLogReporterPlugin

Modified: gump/branches/Gump3/pygump/python/main.py
URL: http://svn.apache.org/viewcvs/gump/branches/Gump3/pygump/python/main.py?rev=209624&r1=209623&r2=209624&view=diff
==============================================================================
--- gump/branches/Gump3/pygump/python/main.py (original)
+++ gump/branches/Gump3/pygump/python/main.py Thu Jul  7 10:48:52 2005
@@ -119,7 +119,13 @@
                       action="store_true",
                       dest="do_build",
                       default=False, # Default to NOT. At least during initial development...
-                      help="run builders")
+                      help="run actual builds")
+    parser.add_option("-f",
+                      "--fill-database",
+                      action="store_true",
+                      dest="do_fill_database",
+                      default=False, # Default to NOT. At least during initial development...
+                      help="put build results into the mysql database")
     parser.add_option("--databaseserver",
                       action="store",
                       default=_databaseserver,