/breezy-hg/trunk

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy-hg/trunk

« back to all changes in this revision

Viewing changes to repository.py

  • Committer: Jelmer Vernooij
  • Date: 2011-11-14 12:06:01 UTC
  • Revision ID: jelmer@samba.org-20111114120601-7qfpq1vqrgv23khl
'Implement' add_signature_text and sign_revision.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    supports_external_lookups = False
61
61
    supports_full_versioned_files = False
62
62
    supports_nesting_repositories = True
 
63
    supports_revision_signatures = False
63
64
    supports_versioned_directories = False
64
65
    revision_graph_can_have_wrong_parents = False
65
66
 
135
136
        """
136
137
        return False
137
138
 
 
139
    def add_signature_text(self, revision_id, signature):
 
140
        """Store a signature text for a revision.
 
141
 
 
142
        :param revision_id: Revision id of the revision
 
143
        :param signature: Signature text.
 
144
        """
 
145
        raise errors.UnsupportedOperation(self.add_signature_text, self)
 
146
 
 
147
    def sign_revision(self, revision_id, gpg_strategy):
 
148
        raise errors.UnsupportedOperation(self.add_signature_text, self)
 
149
 
138
150
 
139
151
class HgLocalRepository(HgRepository):
140
152
    """Local Mercurial repository."""