changeset 516:f2de1c162d30

read scm_type and rules_scm_type from config
author Bjoern Ricks <bricks@intevation.de>
date Wed, 10 Nov 2010 12:03:58 +0000
parents e5698096f1ec
children de78084fcbce
files test/test_readconfig.py treepkg/readconfig.py
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/test_readconfig.py	Wed Nov 10 11:35:47 2010 +0000
+++ b/test/test_readconfig.py	Wed Nov 10 12:03:58 2010 +0000
@@ -121,6 +121,8 @@
                  builder_cls="PBuilder",
                  os="bar os",
                  svn_url=None,
+                 scm_type="svn",
+                 rules_scm_type="svn",
                  status_hook="echo extra hook"),
             dict(name="simple",
                  base_dir="/home/builder/mill/tracks/simple",
@@ -145,6 +147,8 @@
                  builder_cls="PBuilder",
                  os="foo os",
                  svn_url=None,
+                 scm_type="svn",
+                 rules_scm_type="svn",
                  status_hook="echo simple hook")])
 
 def main():
--- a/treepkg/readconfig.py	Wed Nov 10 11:35:47 2010 +0000
+++ b/treepkg/readconfig.py	Wed Nov 10 12:03:58 2010 +0000
@@ -81,7 +81,9 @@
     ("branch", str,""),
     ("os", str, ""),
     ("builder_cls", str, "PBuilder"),
-    ("status_hook", str, "")
+    ("status_hook", str, ""),
+    ("scm_type", str, "svn"),
+    ("rules_scm_type", str, "svn")
     ]
 
 treepkg_desc = [
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)