~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/blackbox/test_upgrade.py

  • Committer: Matt Nordhoff
  • Date: 2009-04-04 02:50:01 UTC
  • mfrom: (4253 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4256.
  • Revision ID: mnordhoff@mattnordhoff.com-20090404025001-z1403k0tatmc8l91
Merge bzr.dev, fixing conflicts.

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
"""Black box tests for the upgrade ui."""
18
18
 
68
68
        # when up to date we should get a message to that effect
69
69
        (out, err) = self.run_bzr('upgrade current_format_branch', retcode=3)
70
70
        self.assertEqual("", out)
71
 
        self.assertEqualDiff("bzr: ERROR: The branch format Bazaar-NG meta "
72
 
                             "directory, format 1 is already at the most "
 
71
        self.assertEqualDiff("bzr: ERROR: The branch format Meta "
 
72
                             "directory format 1 is already at the most "
73
73
                             "recent format.\n", err)
74
74
 
75
75
    def test_upgrade_up_to_date_checkout_warns_branch_left_alone(self):
76
76
        # when upgrading a checkout, the branch location and a suggestion
77
 
        # to upgrade it should be emitted even if the checkout is up to 
 
77
        # to upgrade it should be emitted even if the checkout is up to
78
78
        # date
79
79
        (out, err) = self.run_bzr('upgrade current_format_checkout', retcode=3)
80
80
        self.assertEqual("This is a checkout. The branch (%s) needs to be "
81
81
                         "upgraded separately.\n"
82
82
                         % get_transport(self.get_url('current_format_branch')).base,
83
83
                         out)
84
 
        self.assertEqualDiff("bzr: ERROR: The branch format Bazaar-NG meta "
85
 
                             "directory, format 1 is already at the most "
 
84
        self.assertEqualDiff("bzr: ERROR: The branch format Meta "
 
85
                             "directory format 1 is already at the most "
86
86
                             "recent format.\n", err)
87
87
 
88
88
    def test_upgrade_checkout(self):
90
90
        pass
91
91
 
92
92
    def test_upgrade_repository_scans_branches(self):
93
 
        # we should get individual upgrade notes for each branch even the 
 
93
        # we should get individual upgrade notes for each branch even the
94
94
        # anonymous branch
95
95
        pass
96
96
 
120
120
            bzrdir.BzrDirMetaFormat1))
121
121
 
122
122
    def test_upgrade_explicit_knit(self):
123
 
        # users can force an upgrade to knit format from a metadir weave 
 
123
        # users can force an upgrade to knit format from a metadir weave
124
124
        # branch
125
125
        url = get_transport(self.get_url('metadir_weave_branch')).base
126
126
        # check --format takes effect