Put some more stuff in YAML.
authorAnders Kaseorg <andersk@mit.edu>
Mon, 29 Dec 2008 09:10:29 +0000 (04:10 -0500)
committerAnders Kaseorg <andersk@mit.edu>
Mon, 29 Dec 2008 09:10:29 +0000 (04:10 -0500)
svn path=/trunk/scripts/git-migration/; revision=1946

rules.mako
svn.yml

index 015aa62..55b394e 100644 (file)
@@ -2,6 +2,7 @@
     import yaml
     svn = yaml.load(open('svn.yml'))
     packages = svn['packages']
     import yaml
     svn = yaml.load(open('svn.yml'))
     packages = svn['packages']
+    trunks = svn['trunks']
     scripts = svn['scripts']
     quashes = svn['quashes']
 
     scripts = svn['scripts']
     quashes = svn['quashes']
 
@@ -117,39 +118,29 @@ end match
 match /package_tags/(xen-common|xen-3.1)/
 end match
 
 match /package_tags/(xen-common|xen-3.1)/
 end match
 
-match /trunk/dhcp/
-  repository ${get_repo('sipb-xen-dhcp')}
-  branch ${get_branch('sipb-xen-dhcp')}
-  max revision 281
-end match
-
-match /trunk/web(/|$)
-  repository ${get_repo('sipb-xen-www')}
-  branch ${get_branch('sipb-xen-www')}
-  max revision 303
+% for trunk in trunks:
+%   if 'inclusive' in trunks[trunk]:
+match /trunk/${trunk}(/|$)
+%   else:
+match /trunk/${trunk}/
+%   endif
+  repository ${get_repo(trunks[trunk]['merge'])}
+%   if 'branch' in trunks[trunk]:
+  branch ${trunks[trunk]['branch']}
+%   else:
+  branch ${get_branch(trunks[trunk]['merge'])}
+%   endif
+%   if 'inclusive' in trunks[trunk]:
+  max revision ${trunks[trunk]['punt']}
+%   else:
+  max revision ${trunks[trunk]['punt'] - 1}
+%   endif
 end match
 end match
+% endfor
 
 match /trunk/vnc/tightvnc-1.3.9_javasrc.zip
 end match
 
 
 match /trunk/vnc/tightvnc-1.3.9_javasrc.zip
 end match
 
-match /trunk/vnc/vnc_javasrc/
-  repository ${get_repo('sipb-xen-vnc-client')}
-  branch ${get_branch('sipb-xen-vnc-client')}
-  max revision 304
-end match
-
-match /trunk/vnc/vnc_server(/|$)
-  repository ${get_repo('sipb-xen-vnc-server')}
-  branch ${get_branch('sipb-xen-vnc-server')}
-  max revision 286
-end match
-
-match /trunk/dns/
-  repository ${get_repo('sipb-xen-dns')}
-  branch dns
-  max revision 268
-end match
-
 % for script in scripts:
 match /trunk/scripts/${script}/
   repository scripts/${script}.git
 % for script in scripts:
 match /trunk/scripts/${script}/
   repository scripts/${script}.git
diff --git a/svn.yml b/svn.yml
index 8c1def7..e43bfd9 100644 (file)
--- a/svn.yml
+++ b/svn.yml
@@ -82,6 +82,17 @@ packages:
   xvm-meta: {}
   xvm-munin-config: {}
   xvm-prodconfig: {}
   xvm-meta: {}
   xvm-munin-config: {}
   xvm-prodconfig: {}
+trunks:
+  dhcp:
+    {punt: 282, merge: sipb-xen-dhcp}
+  dns:
+    {punt: 269, merge: sipb-xen-dns, branch: dns}
+  vnc/vnc_javasrc:
+    {punt: 305, merge: sipb-xen-vnc-client}
+  vnc/vnc_server:
+    {punt: 286, inclusive: yes, merge: sipb-xen-vnc-server}
+  web:
+    {punt: 303, inclusive: yes, merge: sipb-xen-www}
 scripts:
 - git-migration
 - invirt.mit.edu
 scripts:
 - git-migration
 - invirt.mit.edu