~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-03-10 06:29:53 UTC
  • mfrom: (1608 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1611.
  • Revision ID: mbp@sourcefrog.net-20060310062953-bc1c7ade75c89a7a
[merge] bzr.dev; pycurl not updated for readv yet

Show diffs side-by-side

added added

removed removed

Lines of Context:
61
61
        # test case for bug #29424:
62
62
        # revert to specific revision for file in subdir does not work
63
63
        self.helper('-r 1')
 
64
 
 
65
    def test_revert_in_checkout(self):
 
66
        os.mkdir('brach')
 
67
        os.chdir('brach')
 
68
        self._prepare_tree()
 
69
        self.runbzr('checkout --lightweight . ../sprach')
 
70
        self.runbzr('commit -m more')
 
71
        os.chdir('../sprach')
 
72
        self.assertEqual('', self.capture('status'))
 
73
        self.runbzr('revert')
 
74
        self.assertEqual('', self.capture('status'))