/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

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

  • Committer: Robert Collins
  • Date: 2006-03-04 22:35:19 UTC
  • mto: This revision was merged to the branch mainline in revision 1590.
  • Revision ID: robertc@robertcollins.net-20060304223519-51db134273f7a5a1
Local commits on unbound branches fail.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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)
 
93