~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/changeset/serializer/v07.py

  • Committer: Aaron Bentley
  • Date: 2006-05-25 17:13:14 UTC
  • mto: This revision was merged to the branch mainline in revision 1738.
  • Revision ID: abentley@panoramicfeedback.com-20060525171314-53d50ffcc34db055
Move calculation of Testament sha1s to Testament

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""
19
19
 
20
20
import os
21
 
from sha import sha
22
21
 
23
22
from bzrlib.changeset.serializer import (ChangesetSerializer, 
24
23
        CHANGESET_HEADER,
25
24
        format_highres_date, unpack_highres_date)
26
 
from bzrlib.changeset.common import testament_sha1
27
25
from bzrlib.changeset.serializer import binary_diff
28
26
from bzrlib.delta import compare_trees
29
27
from bzrlib.diff import internal_diff
33
31
from bzrlib.revision import NULL_REVISION
34
32
from bzrlib.rio import RioWriter, read_stanzas
35
33
import bzrlib.ui
 
34
from bzrlib.testament import StrictTestament
36
35
from bzrlib.textfile import text_file
37
36
 
38
37
bool_text = {True: 'yes', False: 'no'}
197
196
        self._write_delta(rev_tree, base_tree, rev.revision_id)
198
197
 
199
198
        w('revision id', rev.revision_id)
200
 
        w('sha1', testament_sha1(self.source, rev.revision_id))
 
199
        w('sha1', StrictTestament.from_revision(self.source, 
 
200
                                                rev.revision_id).as_sha1())
201
201
        w('inventory sha1', rev.inventory_sha1)
202
202
        if rev.parent_ids:
203
203
            w('parent ids', rev.parent_ids)