/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-18 18:18:36 UTC
  • mto: This revision was merged to the branch mainline in revision 4461.
  • Revision ID: john@arbash-meinel.com-20090618181836-biodfkat9a8eyzjz
The new add_inventory_by_delta is returning a CHKInventory when mapping from NULL
Which is completely valid, but 'broke' one of the tests.
So to fix it, changed the test to use CHKInventories on both sides, and add an __eq__
member. The nice thing is that CHKInventory.__eq__ is fairly cheap, since it only
has to check the root keys.

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