Changeset 1906 for trunk


Ignore:
Timestamp:
Dec 26, 2008, 2:50:32 AM (16 years ago)
Author:
andersk
Message:

I think I'm starting to get a hang of this whole svn thing, now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-migration/rules.mako

    r1905 r1906  
    55    packages = [package[len('packages/'):] for package in packages]
    66
     7    doubled_packages = {
     8        'sipb-xen-base': (314, 315),
     9        'sipb-xen-database': (311, 313),
     10        'sipb-xen-dev': (314, 315),
     11        'sipb-xen-dom0': (314, 315),
     12        'sipb-xen-remctl-auto': (314, 315),
     13    }
     14
    715    punt = {
     16        'sipb-xen-guest-installer': 742,
     17        'sipb-xen-dns': 1184,
    818        'sipb-xen-base': 1350,
    919        'sipb-xen-chrony-config': 1351,
     
    7181end match
    7282
     83match /trunk/packages/sipb-xen-autoinstaller(/|$)
     84  min revision 742
     85  max revision 742
     86end match
     87
    7388% for package in packages:
     89
     90% if package == 'sipb-xen-database':
     91match /trunk/packages/${package}/${package}-0(/|$)
     92  repository ${get_repo(package)}
     93  branch ${get_branch(package)}
     94  max revision 8
     95end match
     96% endif
     97
     98% if package in doubled_packages:
    7499match /trunk/packages/${package}/${package}(/|$)
    75100  repository ${get_repo(package)}
    76101  branch ${get_branch(package)}
    77   max revision 317
     102  max revision ${doubled_packages[package][0] - 1}
    78103end match
    79104
     
    81106  repository ${get_repo(package)}
    82107  branch tags/${get_tag_prefix(package)}\1
     108  max revision ${doubled_packages[package][0] - 1}
    83109end match
     110
     111match /trunk/packages/tmp/${package}(/|$)
     112  repository ${get_repo(package)}
     113  branch ${get_branch(package)}
     114  max revision ${doubled_packages[package][1] - 1}
     115end match
     116% endif
    84117
    85118match /trunk/packages/${package}(/|$)
    86119  repository ${get_repo(package)}
    87120  branch ${get_branch(package)}
     121% if package in doubled_packages:
     122  min revision ${doubled_packages[package][1]}
     123% endif
    88124% if package in punt:
    89125  max revision ${punt[package] - 1}
     
    94130  repository ${get_repo(package)}
    95131  branch tags/${get_tag_prefix(package)}\1
     132% if package in doubled_packages:
     133  min revision ${doubled_packages[package][1]}
     134% endif
    96135end match
    97136
     
    99138  repository ${get_repo(package)}
    100139  branch tags/${get_tag_prefix(package)}\1_\2
     140% if package in doubled_packages:
     141  min revision ${doubled_packages[package][1]}
     142% endif
    101143end match
    102144
     
    107149
    108150match /package_tags/(xen-common|xen-3.1)(/|$)
    109 end match
    110 
    111 match /trunk/packages/tmp(/|$)
    112   repository ${get_repo('sipb-xen-database')}
    113   branch ${get_branch('sipb-xen-database')}
    114151end match
    115152
     
    123160  repository ${get_repo('sipb-xen-www')}
    124161  branch ${get_branch('sipb-xen-www')}
     162  max revision 302
    125163end match
    126164
Note: See TracChangeset for help on using the changeset viewer.