~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Aaron Bentley
  • Date: 2007-11-17 17:54:25 UTC
  • mto: This revision was merged to the branch mainline in revision 3011.
  • Revision ID: aaron.bentley@utoronto.ca-20071117175425-q236vj7y57ltotpp
Rename function to add_signature_text

Show diffs side-by-side

added added

removed removed

Lines of Context:
1051
1051
    @needs_write_lock
1052
1052
    def store_revision_signature(self, gpg_strategy, plaintext, revision_id):
1053
1053
        signature = gpg_strategy.sign(plaintext)
1054
 
        self.add_signature(revision_id, signature)
 
1054
        self.add_signature_text(revision_id, signature)
1055
1055
 
1056
1056
    @needs_write_lock
1057
 
    def add_signature(self, revision_id, signature):
 
1057
    def add_signature_text(self, revision_id, signature):
1058
1058
        self._revision_store.add_revision_signature_text(revision_id,
1059
1059
                                                         signature,
1060
1060
                                                         self.get_transaction())
1636
1636
 
1637
1637
 
1638
1638
def install_revisions(repository, iterable):
1639
 
    """Install all revision data into a repository."""
 
1639
    """Install all revision data into a repository.
 
1640
 
 
1641
    Accepts an iterable of revision, tree, signature tuples.  The signature
 
1642
    may be None.
 
1643
    """
1640
1644
    repository.start_write_group()
1641
1645
    try:
1642
1646
        for revision, revision_tree, signature in iterable: