~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: John Arbash Meinel
  • Date: 2008-08-25 21:50:11 UTC
  • mfrom: (0.11.3 tools)
  • mto: This revision was merged to the branch mainline in revision 3659.
  • Revision ID: john@arbash-meinel.com-20080825215011-de9esmzgkue3e522
Merge in Lukáš's helper scripts.
Update the packaging documents to describe how to do the releases
using bzr-builddeb to package all distro platforms
simultaneously.

Show diffs side-by-side

added added

removed removed

Lines of Context:
126
126
 
127
127
    def test_describe_tree_format(self):
128
128
        for key in bzrdir.format_registry.keys():
129
 
            if key == 'default':
 
129
            if key in bzrdir.format_registry.aliases():
130
130
                continue
131
131
            self.assertTreeDescription(key)
132
132
 
133
133
    def test_describe_checkout_format(self):
134
134
        for key in bzrdir.format_registry.keys():
135
 
            if key in ('default', 'weave', 'experimental'):
136
 
                continue
137
 
            if key.startswith('experimental-'):
138
 
                # these are typically hidden or aliases for other formats
 
135
            if key in bzrdir.format_registry.aliases():
 
136
                # Aliases will not describe correctly in the UI because the
 
137
                # real format is found.
 
138
                continue
 
139
            # legacy: weave does not support checkouts
 
140
            if key == 'weave':
 
141
                continue
 
142
            if bzrdir.format_registry.get_info(key).experimental:
 
143
                # We don't require that experimental formats support checkouts
 
144
                # or describe correctly in the UI.
139
145
                continue
140
146
            expected = None
141
 
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree'):
142
 
                expected = 'dirstate or dirstate-tags'
 
147
            if key in ('dirstate', 'dirstate-tags', 'dirstate-with-subtree',
 
148
                'pack-0.92', 'pack-0.92-subtree', 'rich-root',
 
149
                'rich-root-pack', '1.6', '1.6-rich-root'):
 
150
                expected = '1.6 or 1.6-rich-root or ' \
 
151
                    'dirstate or dirstate-tags or pack-0.92 or'\
 
152
                    ' rich-root or rich-root-pack'
143
153
            if key in ('knit', 'metaweave'):
144
154
                expected = 'knit or metaweave'
145
155
            self.assertCheckoutDescription(key, expected)
146
156
 
147
157
    def test_describe_branch_format(self):
148
158
        for key in bzrdir.format_registry.keys():
149
 
            if key == 'default':
 
159
            if key in bzrdir.format_registry.aliases():
150
160
                continue
151
161
            expected = None
152
162
            if key in ('dirstate', 'knit'):
155
165
 
156
166
    def test_describe_repo_format(self):
157
167
        for key in bzrdir.format_registry.keys():
158
 
            if key == 'default':
 
168
            if key in bzrdir.format_registry.aliases():
159
169
                continue
160
170
            expected = None
161
171
            if key in ('dirstate', 'knit', 'dirstate-tags'):