~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to tools/win32/build_release.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2009-03-17 07:05:37 UTC
  • mfrom: (4152.1.2 branch.stacked.streams)
  • Revision ID: pqm@pqm.ubuntu.com-20090317070537-zaud24vjs2szna87
(robertc) Add client-side streaming from stacked branches (over
        bzr:// protocols) when the sort order is compatible with doing
        that. (Robert Collins, Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
# When preparing a new release, make sure to set all of these to the latest
5
5
# values.
6
6
VERSIONS = {
7
 
    'bzr': '1.17',
8
 
    'qbzr': '0.12',
9
 
    'bzrtools': '1.17.0',
10
 
    'bzr-svn': '0.6.3',
11
 
    'bzr-rewrite': '0.5.2',
12
 
    'subvertpy': '0.6.8',
 
7
    'bzr': '1.12',
 
8
    'qbzr': '0.9.8',
 
9
    'bzrtools': '1.12.0',
 
10
    'bzr-svn': '0.5.2',
 
11
    'subvertpy': '0.6.4',
13
12
}
14
13
 
15
14
# This will be passed to 'make' to ensure we build with the right python
85
84
    bzr_dir = get_bzr_dir()
86
85
    if not os.path.isdir(bzr_dir):
87
86
        bzr_version = VERSIONS['bzr']
88
 
        # bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
89
 
        bzr_url = 'lp:bzr/' + bzr_version
 
87
        bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
90
88
        print "Getting bzr release %s from %s" % (bzr_version, bzr_url)
91
 
        call_or_fail([bzr(), 'co', bzr_url, bzr_dir])
 
89
        call_or_fail([bzr(), 'co', bzr_url])
92
90
    else:
93
91
        print "Ensuring %s is up-to-date" % (bzr_dir,)
94
92
        call_or_fail([bzr(), 'update', bzr_dir])
126
124
 
127
125
 
128
126
def _plugin_tag_name(plugin_name):
129
 
    if plugin_name in ('bzr-svn', 'bzr-rewrite', 'subvertpy'):
 
127
    if plugin_name in ('bzr-svn', 'subvertpy'):
130
128
        return '%s-%s' % (plugin_name, VERSIONS[plugin_name])
131
129
    # bzrtools and qbzr use 'release-X.Y.Z'
132
130
    return 'release-' + VERSIONS[plugin_name]
135
133
def update_plugin(plugin_name):
136
134
    release_dir = get_plugin_release_dir(plugin_name)
137
135
    if not os.path.isdir(plugin_name):
138
 
        if plugin_name in ('bzr-svn', 'bzr-rewrite'):
 
136
        if plugin_name == 'bzr-svn':
139
137
            # bzr-svn uses a different repo format
140
138
            call_or_fail([bzr(), 'init-repo', '--rich-root-pack', plugin_name])
141
139
        else:
196
194
    install_plugin('bzrtools')
197
195
    install_plugin('qbzr')
198
196
    install_plugin('bzr-svn')
199
 
    install_plugin('bzr-rewrite')
200
197
 
201
198
    build_installer()
202
199