~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/testament.py

- add and test 'testament' builtin command

Show diffs side-by-side

added added

removed removed

Lines of Context:
66
66
 
67
67
# TODO: perhaps write timestamp in a more readable form
68
68
 
 
69
# TODO: Perhaps these should just be different formats in which inventories/
 
70
# revisions can be serialized.
 
71
 
69
72
from cStringIO import StringIO
70
73
import string
71
74
from sha import sha
105
108
        """Produce a new testament from a historical revision"""
106
109
        t = cls()
107
110
        rev = branch.get_revision(revision_id)
108
 
        t.revision_id = revision_id
 
111
        t.revision_id = str(revision_id)
109
112
        t.committer = rev.committer
110
113
        t.timezone = rev.timezone or 0
111
114
        t.timestamp = rev.timestamp