~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_read_bundle.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-06-28 07:08:27 UTC
  • mfrom: (2553.1.3 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070628070827-h5s313dg5tnag9vj
(robertc) Show the names of commit hooks during commit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
51
51
 
52
52
        out = cStringIO.StringIO()
53
53
        rev_ids = write_bundle(wt.branch.repository,
54
 
                               wt.get_parent_ids()[0], 'null:', out)
 
54
                               wt.get_parent_ids()[0], None, out)
55
55
        out.seek(0)
56
56
        if self.get_transport().is_readonly():
57
57
            f = open('test_bundle', 'wb')
69
69
            return
70
70
        info = bzrlib.bundle.read_bundle_from_url(
71
71
                    unicode(self.get_url('test_bundle')))
72
 
        revision = info.real_revisions[-1]
73
 
        self.assertEqual('commit-1', revision.revision_id)
 
72
        bundle_tree = info.revision_tree(wt.branch.repository, info.target)
 
73
        self.assertEqual('commit-1', bundle_tree.revision_id)
74
74
 
75
75
    def test_read_fail(self):
76
76
        # Trying to read from a directory, or non-bundle file