# HG changeset patch # User Bjoern Ricks # Date 1289390638 0 # Node ID f2de1c162d305c21f18e9eba1e269aa9c332c5da # Parent e5698096f1ecba1b07324f8c59c93386f29319f5 read scm_type and rules_scm_type from config diff -r e5698096f1ec -r f2de1c162d30 test/test_readconfig.py --- 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(): diff -r e5698096f1ec -r f2de1c162d30 treepkg/readconfig.py --- 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 = [