~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/testament.py

  • Committer: Jelmer Vernooij
  • Date: 2011-05-11 14:28:36 UTC
  • mto: This revision was merged to the branch mainline in revision 5852.
  • Revision ID: jelmer@samba.org-20110511142836-xh8q16tywfmepfjh
UseĀ osutils.sha_strings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
74
74
from bzrlib.osutils import (
75
75
    contains_whitespace,
76
76
    contains_linebreaks,
77
 
    sha,
 
77
    sha_strings,
78
78
    )
79
79
from bzrlib.tree import Tree
80
80
 
209
209
        return r
210
210
 
211
211
    def as_sha1(self):
212
 
        s = sha()
213
 
        map(s.update, self.as_text_lines())
214
 
        return s.hexdigest()
 
212
        return sha_strings(self.as_text_lines())
215
213
 
216
214
 
217
215
class StrictTestament(Testament):