~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-11-16 04:45:22 UTC
  • mfrom: (2948.2.2 uncommit_no_history)
  • Revision ID: pqm@pqm.ubuntu.com-20071116044522-3q7b9a1nt4nl5lfy
(John Arbash Meinel) Fix 'bzr uncommit' in a branch with no history.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
        out, err = self.run_bzr('status')
61
61
        self.assertEquals(out, 'modified:\n  a\n')
62
62
 
 
63
    def test_uncommit_no_history(self):
 
64
        wt = self.make_branch_and_tree('tree')
 
65
        out, err = self.run_bzr('uncommit --force', retcode=1)
 
66
        self.assertEqual('', err)
 
67
        self.assertEqual('No revisions to uncommit.\n', out)
 
68
 
63
69
    def test_uncommit_checkout(self):
64
70
        wt = self.create_simple_tree()
65
71
        checkout_tree = wt.branch.create_checkout('checkout')