/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/remote.py

  • Committer: Alexander Belchenko
  • Date: 2007-11-23 17:55:37 UTC
  • mfrom: (3018 +trunk)
  • mto: This revision was merged to the branch mainline in revision 3020.
  • Revision ID: bialix@ukr.net-20071123175537-wke5mt9hxkh92xc2
merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
305
305
            #self._real_repository = self.bzrdir._real_bzrdir.open_repository()
306
306
            self._set_real_repository(self.bzrdir._real_bzrdir.open_repository())
307
307
 
 
308
    def find_text_key_references(self):
 
309
        """Find the text key references within the repository.
 
310
 
 
311
        :return: a dictionary mapping (file_id, revision_id) tuples to altered file-ids to an iterable of
 
312
        revision_ids. Each altered file-ids has the exact revision_ids that
 
313
        altered it listed explicitly.
 
314
        :return: A dictionary mapping text keys ((fileid, revision_id) tuples)
 
315
            to whether they were referred to by the inventory of the
 
316
            revision_id that they contain. The inventory texts from all present
 
317
            revision ids are assessed to generate this report.
 
318
        """
 
319
        self._ensure_real()
 
320
        return self._real_repository.find_text_key_references()
 
321
 
 
322
    def _generate_text_key_index(self):
 
323
        """Generate a new text key index for the repository.
 
324
 
 
325
        This is an expensive function that will take considerable time to run.
 
326
 
 
327
        :return: A dict mapping (file_id, revision_id) tuples to a list of
 
328
            parents, also (file_id, revision_id) tuples.
 
329
        """
 
330
        self._ensure_real()
 
331
        return self._real_repository._generate_text_key_index()
 
332
 
308
333
    def get_revision_graph(self, revision_id=None):
309
334
        """See Repository.get_revision_graph()."""
310
335
        if revision_id is None:
796
821
        return self._real_repository.store_revision_signature(
797
822
            gpg_strategy, plaintext, revision_id)
798
823
 
 
824
    def add_signature_text(self, revision_id, signature):
 
825
        self._ensure_real()
 
826
        return self._real_repository.add_signature_text(revision_id, signature)
 
827
 
799
828
    def has_signature_for_revision_id(self, revision_id):
800
829
        self._ensure_real()
801
830
        return self._real_repository.has_signature_for_revision_id(revision_id)