~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Aaron Bentley
  • Date: 2010-05-10 11:34:20 UTC
  • mfrom: (5218 +trunk)
  • mto: This revision was merged to the branch mainline in revision 5221.
  • Revision ID: aaron@aaronbentley.com-20100510113420-toh2d5yioobb5uq1
Merged bzr.dev into transform-commit-full.

Show diffs side-by-side

added added

removed removed

Lines of Context:
64
64
                         result.open_branch().bzrdir.root_transport.base)
65
65
 
66
66
    def test_checkout_dash_r(self):
67
 
        self.run_bzr('checkout -r -2 branch checkout')
 
67
        out, err = self.run_bzr(['checkout', '-r', '-2', 'branch', 'checkout'])
 
68
        self.assertContainsRe(out, 'Copying history to "checkout".')
68
69
        # the working tree should now be at revision '1' with the content
69
70
        # from 1.
70
71
        result = bzrdir.BzrDir.open('checkout')
72
73
        self.failIfExists('checkout/added_in_2')
73
74
 
74
75
    def test_checkout_light_dash_r(self):
75
 
        self.run_bzr('checkout --lightweight -r -2 branch checkout')
 
76
        out, err = self.run_bzr(['checkout','--lightweight', '-r', '-2',
 
77
            'branch', 'checkout'])
 
78
        self.assertNotContainsRe(out, 'Copying history')
76
79
        # the working tree should now be at revision '1' with the content
77
80
        # from 1.
78
81
        result = bzrdir.BzrDir.open('checkout')