~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

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

  • Committer: John Arbash Meinel
  • Date: 2008-08-25 21:50:11 UTC
  • mfrom: (0.11.3 tools)
  • mto: This revision was merged to the branch mainline in revision 3659.
  • Revision ID: john@arbash-meinel.com-20080825215011-de9esmzgkue3e522
Merge in Lukáš's helper scripts.
Update the packaging documents to describe how to do the releases
using bzr-builddeb to package all distro platforms
simultaneously.

Show diffs side-by-side

added added

removed removed

Lines of Context:
167
167
        out, err = self.run_bzr("annotate doesnotexist", retcode=3)
168
168
        self.assertEqual('', out)
169
169
        self.assertEqual("bzr: ERROR: doesnotexist is not versioned.\n", err)
 
170
 
 
171
    def test_annotate_without_workingtree(self):
 
172
        tree = self.make_branch_and_tree('branch')
 
173
        self.build_tree_contents([('branch/empty', '')])
 
174
        tree.add('empty')
 
175
        tree.commit('add empty file')
 
176
        bzrdir = tree.branch.bzrdir
 
177
        bzrdir.destroy_workingtree()
 
178
        self.assertFalse(bzrdir.has_workingtree())
 
179
 
 
180
        os.chdir('branch')
 
181
        out, err = self.run_bzr('annotate empty')
 
182
        self.assertEqual('', out)