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

1st cut merge of bzr.dev r3907

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2006, 2007 Canonical Ltd
 
1
# Copyright (C) 2006, 2007, 2008 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
247
247
        branch5 = tree5.branch
248
248
        out, err = self.run_bzr('info -v lightcheckout')
249
249
        self.assertEqualDiff(
250
 
"""Lightweight checkout (format: 1.6 or 1.6-rich-root \
 
250
"""Lightweight checkout (format: 1.6 or 1.6.1-rich-root \
 
251
or 1.9 or 1.9-rich-root \
251
252
or dirstate or dirstate-tags or \
252
253
pack-0.92 or rich-root or rich-root-pack)
253
254
Location:
415
416
        # Out of date lightweight checkout
416
417
        out, err = self.run_bzr('info lightcheckout --verbose')
417
418
        self.assertEqualDiff(
418
 
"""Lightweight checkout (format: 1.6 or 1.6-rich-root or \
 
419
"""Lightweight checkout (format: 1.6 or 1.6.1-rich-root or \
 
420
1.9 or 1.9-rich-root or \
419
421
dirstate or dirstate-tags or \
420
422
pack-0.92 or rich-root or rich-root-pack)
421
423
Location:
552
554
        datestring_first = format_date(rev.timestamp, rev.timezone)
553
555
        out, err = self.run_bzr('info tree/lightcheckout --verbose')
554
556
        self.assertEqualDiff(
555
 
"""Lightweight checkout (format: 1.6 or 1.6-rich-root or \
 
557
"""Lightweight checkout (format: 1.6 or 1.6.1-rich-root or \
 
558
1.9 or 1.9-rich-root or \
556
559
dirstate or dirstate-tags or \
557
560
pack-0.92 or rich-root or rich-root-pack)
558
561
Location:
676
679
        datestring_last = format_date(rev.timestamp, rev.timezone)
677
680
        out, err = self.run_bzr('info tree/lightcheckout --verbose')
678
681
        self.assertEqualDiff(
679
 
"""Lightweight checkout (format: 1.6 or 1.6-rich-root or \
 
682
"""Lightweight checkout (format: 1.6 or 1.6.1-rich-root or \
 
683
1.9 or 1.9-rich-root or \
680
684
dirstate or dirstate-tags or \
681
685
pack-0.92 or rich-root or rich-root-pack)
682
686
Location:
1092
1096
            (False, True): 'Lightweight checkout',
1093
1097
            (False, False): 'Checkout',
1094
1098
            }[(shared_repo is not None, light_checkout)]
1095
 
        format = {True: '1.6 or 1.6-rich-root'
 
1099
        format = {True: '1.6 or 1.6.1-rich-root'
 
1100
                        ' or 1.9 or 1.9-rich-root'
1096
1101
                        ' or dirstate or dirstate-tags or pack-0.92'
1097
1102
                        ' or rich-root or rich-root-pack',
1098
1103
                  False: 'dirstate'}[light_checkout]
1376
1381
    def test_info_stacked(self):
1377
1382
        # We have a mainline
1378
1383
        trunk_tree = self.make_branch_and_tree('mainline',
1379
 
            format='development1')
 
1384
            format='1.6')
1380
1385
        trunk_tree.commit('mainline')
1381
1386
        # and a branch from it which is stacked
1382
1387
        new_dir = trunk_tree.bzrdir.sprout('newbranch', stacked=True)
1383
1388
        out, err = self.run_bzr('info newbranch')
1384
1389
        self.assertEqual(
1385
 
"""Standalone tree (format: development1)
 
1390
"""Standalone tree (format: 1.6)
1386
1391
Location:
1387
1392
  branch root: newbranch
1388
1393