All pastes #57519 Raw Edit

Unnamed

public text v1 · immutable
#57519 ·published 2006-05-21 09:31 UTC
rendered paste body
    def test_annotate_cmd_ghost(self):
        branch = BzrDir.open('.').open_branch()
        branch.lock_write()
        history = branch.revision_history()
        revision_id = history.pop()
        revision = branch.repository.get_revision(revision_id)
        revision.revision_id = 'dummy'
        revision.parent_ids.append('ghost')
        branch.repository._revision_store.add_revision(revision, branch.get_transaction())
        history.append('dummy')
        branch.set_revision_history(history)
        branch.unlock()
        out, err = self.run_bzr_captured(['annotate', 'hello.txt'])
        self.assertEquals(err, '')
        self.assertEqualDiff(out, '''\
    1 test@us | my helicopter
    ? ?       | your helicopter
''')
#    3 user@te | your helicopter