~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testchangeset.py

  • Committer: John Arbash Meinel
  • Date: 2005-07-14 00:52:22 UTC
  • mto: (0.5.85) (1185.82.1 bzr-w-changeset)
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: john@arbash-meinel.com-20050714005222-36fd6b3ce894d7de
Tests pass. Now ChangesetTree has it's own inventory.

Show diffs side-by-side

added added

removed removed

Lines of Context:
230
230
        rev = self.b1.get_revision(rev_id)
231
231
        self.assertEqual(cset_txt.readline(), '# committer: %s\n' % rev.committer)
232
232
 
 
233
        open(',,cset', 'wb').write(cset_txt.getvalue())
233
234
        cset_txt.seek(0)
234
235
        # This should also validate the generate changeset
235
236
        cset = read_changeset(cset_txt, self.b1)
236
 
        info, tree, inv = cset
 
237
        info, tree = cset
237
238
        for cset_rev in info.real_revisions:
238
239
            # These really should have already been checked in read_changeset
239
240
            # since it computes the sha1 hash for the revision, which
260
261
 
261
262
        self.valid_apply_changeset(base_rev_id, cset)
262
263
 
263
 
        return info, tree, inv
 
264
        return cset
264
265
 
265
266
    def get_checkout(self, rev_id):
266
267
        """Get a new tree, with the specified revision in it.