/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to tools/win32/build_release.py

  • Committer: John Arbash Meinel
  • Date: 2009-06-12 18:05:15 UTC
  • mto: (4371.4.5 vila-better-heads)
  • mto: This revision was merged to the branch mainline in revision 4449.
  • Revision ID: john@arbash-meinel.com-20090612180515-t0cwbjsnve094oik
Add a failing test for handling nodes that are in the same linear chain.

It fails because the ancestry skipping causes us to miss the fact that the two nodes
are actually directly related. We could check at the beginning, as the 
code used to do, but I think that will be incomplete for the more-than-two
heads cases.

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
    'bzr-rebase': '0.4.4',
 
12
    'subvertpy': '0.6.4',
13
13
}
14
14
 
15
15
# This will be passed to 'make' to ensure we build with the right python
85
85
    bzr_dir = get_bzr_dir()
86
86
    if not os.path.isdir(bzr_dir):
87
87
        bzr_version = VERSIONS['bzr']
88
 
        # bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
89
 
        bzr_url = 'lp:bzr/' + bzr_version
 
88
        bzr_url = 'http://bazaar-vcs.org/bzr/bzr.' + bzr_version
90
89
        print "Getting bzr release %s from %s" % (bzr_version, bzr_url)
91
 
        call_or_fail([bzr(), 'co', bzr_url, bzr_dir])
 
90
        call_or_fail([bzr(), 'co', bzr_url])
92
91
    else:
93
92
        print "Ensuring %s is up-to-date" % (bzr_dir,)
94
93
        call_or_fail([bzr(), 'update', bzr_dir])
126
125
 
127
126
 
128
127
def _plugin_tag_name(plugin_name):
129
 
    if plugin_name in ('bzr-svn', 'bzr-rewrite', 'subvertpy'):
 
128
    if plugin_name in ('bzr-svn', 'bzr-rebase', 'subvertpy'):
130
129
        return '%s-%s' % (plugin_name, VERSIONS[plugin_name])
131
130
    # bzrtools and qbzr use 'release-X.Y.Z'
132
131
    return 'release-' + VERSIONS[plugin_name]
135
134
def update_plugin(plugin_name):
136
135
    release_dir = get_plugin_release_dir(plugin_name)
137
136
    if not os.path.isdir(plugin_name):
138
 
        if plugin_name in ('bzr-svn', 'bzr-rewrite'):
 
137
        if plugin_name in ('bzr-svn', 'bzr-rebase'):
139
138
            # bzr-svn uses a different repo format
140
139
            call_or_fail([bzr(), 'init-repo', '--rich-root-pack', plugin_name])
141
140
        else:
196
195
    install_plugin('bzrtools')
197
196
    install_plugin('qbzr')
198
197
    install_plugin('bzr-svn')
199
 
    install_plugin('bzr-rewrite')
 
198
    install_plugin('bzr-rebase')
200
199
 
201
200
    build_installer()
202
201