~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Parth Malwankar
  • Date: 2010-04-30 09:52:08 UTC
  • mto: This revision was merged to the branch mainline in revision 5210.
  • Revision ID: parth.malwankar@gmail.com-20100430095208-xbotuttawohxqsfa
heavyweight checkout shows a message indicating history copy.

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')