~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-10-31 04:14:04 UTC
  • mfrom: (2102.1.1 50793)
  • Revision ID: pqm@pqm.ubuntu.com-20061031041404-f1bf9db09d9ee5cf
(edward) fix #50793, no error for bzr log nonexistent

Show diffs side-by-side

added added

removed removed

Lines of Context:
108
108
        self.assertTrue('branch nick: branch2\n' in log)
109
109
        self.assertTrue('branch nick: branch1\n' not in log)
110
110
        
 
111
    def test_log_nonexistent_file(self):
 
112
        # files that don't exist in either the basis tree or working tree
 
113
        # should give an error
 
114
        wt = self.make_branch_and_tree('.')
 
115
        out, err = self.run_bzr('log', 'does-not-exist', retcode=3)
 
116
        self.assertContainsRe(
 
117
            err, 'Path does not have any revision history: does-not-exist')
111
118
 
112
119
class TestLogMerges(ExternalBase):
113
120