~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/testament.py

Abbreviate pack_stat struct format to '>6L'

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):