~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_info.py

  • Committer: Andrew Bennetts
  • Date: 2009-07-27 05:35:00 UTC
  • mfrom: (4570 +trunk)
  • mto: (4634.6.29 2.0)
  • mto: This revision was merged to the branch mainline in revision 4680.
  • Revision ID: andrew.bennetts@canonical.com-20090727053500-q76zsn2dx33jhmj5
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
#
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program; if not, write to the Free Software
15
 
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
15
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16
16
 
17
17
import sys
18
18
from urllib import quote
154
154
                    ' rich-root or rich-root-pack'
155
155
            elif key in ('knit', 'metaweave'):
156
156
                expected = 'knit or metaweave'
157
 
            elif key in ('development-wt5', 'development-wt5-rich-root'):
158
 
                expected = 'development-wt5 or development-wt5-rich-root'
 
157
            elif key in ('1.14', '1.14-rich-root'):
 
158
                expected = '1.14 or 1.14-rich-root'
159
159
            self.assertCheckoutDescription(key, expected)
160
160
 
161
161
    def test_describe_branch_format(self):
162
162
        for key in bzrdir.format_registry.keys():
163
163
            if key in bzrdir.format_registry.aliases():
164
164
                continue
 
165
            if bzrdir.format_registry.get_info(key).hidden:
 
166
                continue
165
167
            expected = None
166
168
            if key in ('dirstate', 'knit'):
167
169
                expected = 'dirstate or knit'
168
 
            elif key in ('1.9', 'development-wt5'):
169
 
                expected = '1.9 or development-wt5'
170
 
            elif key in ('1.9-rich-root', 'development-wt5-rich-root'):
171
 
                expected = '1.9-rich-root or development-wt5-rich-root'
 
170
            elif key in ('1.9', '1.14'):
 
171
                expected = '1.14 or 1.9'
 
172
            elif key in ('1.9-rich-root', '1.14-rich-root'):
 
173
                expected = '1.14-rich-root or 1.9-rich-root'
172
174
            self.assertBranchDescription(key, expected)
173
175
 
174
176
    def test_describe_repo_format(self):
175
177
        for key in bzrdir.format_registry.keys():
176
178
            if key in bzrdir.format_registry.aliases():
177
179
                continue
 
180
            if bzrdir.format_registry.get_info(key).hidden:
 
181
                continue
178
182
            expected = None
179
183
            if key in ('dirstate', 'knit', 'dirstate-tags'):
180
184
                expected = 'dirstate or dirstate-tags or knit'
181
 
            elif key in ('1.9', 'development-wt5'):
182
 
                expected = '1.9 or development-wt5'
183
 
            elif key in ('1.9-rich-root', 'development-wt5-rich-root'):
184
 
                expected = '1.9-rich-root or development-wt5-rich-root'
 
185
            elif key in ('1.9', '1.14'):
 
186
                expected = '1.14 or 1.9'
 
187
            elif key in ('1.9-rich-root', '1.14-rich-root'):
 
188
                expected = '1.14-rich-root or 1.9-rich-root'
185
189
            self.assertRepoDescription(key, expected)
186
190
 
187
191
        format = bzrdir.format_registry.make_bzrdir('metaweave')