~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Martin Pool
  • Date: 2006-03-06 07:11:09 UTC
  • mfrom: (1591 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1593.
  • Revision ID: mbp@sourcefrog.net-20060306071109-6b35534e38610c43
[merge] bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
        # of date checkout
72
72
        self.make_branch_and_tree('branch')
73
73
        # make a checkout
74
 
        self.runbzr('checkout branch checkout')
 
74
        self.runbzr('checkout --lightweight branch checkout')
75
75
        # commit to the original branch to make the checkout out of date
76
76
        self.runbzr('commit --unchanged -m message branch')
77
77
        # now commit to the checkout should emit
82
82
                         ('',
83
83
                          "bzr: ERROR: Working tree is out of date, please run "
84
84
                          "'bzr update'.\n"))
 
85
 
 
86
    def test_local_commit_unbound(self):
 
87
        # a --local commit on an unbound branch is an error
 
88
        self.make_branch_and_tree('.')
 
89
        out, err = self.run_bzr('commit', '--local', retcode=3)
 
90
        self.assertEqualDiff('', out)
 
91
        self.assertEqualDiff('bzr: ERROR: Cannot perform local-only commits '
 
92
                             'on unbound branches.\n', err)