/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 breezy/tests/test_info.py

  • Committer: Jelmer Vernooij
  • Date: 2018-03-24 17:48:04 UTC
  • mfrom: (6921 work)
  • mto: This revision was merged to the branch mainline in revision 6923.
  • Revision ID: jelmer@jelmer.uk-20180324174804-xf22o05byoj12x1q
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
from .. import (
20
20
    branch as _mod_branch,
21
21
    controldir,
 
22
    errors,
22
23
    info,
23
24
    tests,
24
25
    workingtree,
137
138
            repo, None, None))
138
139
 
139
140
    def test_describe_tree_format(self):
140
 
        for key in controldir.format_registry.keys():
 
141
        for key, format in controldir.format_registry.iteritems():
141
142
            if key in controldir.format_registry.aliases():
142
143
                continue
 
144
            if not format().supports_workingtrees:
 
145
                continue
143
146
            self.assertTreeDescription(key)
144
147
 
145
148
    def test_describe_checkout_format(self):
151
154
            # legacy: weave does not support checkouts
152
155
            if key == 'weave':
153
156
                continue
 
157
            # foreign: git checkouts can actually be bzr controldirs
 
158
            if key in ('git', 'git-bare'):
 
159
                continue
154
160
            if controldir.format_registry.get_info(key).experimental:
155
161
                # We don't require that experimental formats support checkouts
156
162
                # or describe correctly in the UI.