-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