~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.py

  • Committer: Martin Pool
  • Date: 2011-07-04 21:10:37 UTC
  • mto: (6034.1.1 filter-tree)
  • mto: This revision was merged to the branch mainline in revision 6035.
  • Revision ID: mbp@canonical.com-20110704211037-ro3417imj3oqnqxp
Support exporting tarballs from ContentFilterTree

Show diffs side-by-side

added added

removed removed

Lines of Context:
1180
1180
                'sha1 mismatch: %s has sha1 %s expected %s referenced by %s' %
1181
1181
                (record.key, sha1, item_data[1], item_data[2]))
1182
1182
 
1183
 
    @needs_read_lock
1184
 
    def _eliminate_revisions_not_present(self, revision_ids):
1185
 
        """Check every revision id in revision_ids to see if we have it.
1186
 
 
1187
 
        Returns a set of the present revisions.
1188
 
        """
1189
 
        result = []
1190
 
        graph = self.get_graph()
1191
 
        parent_map = graph.get_parent_map(revision_ids)
1192
 
        # The old API returned a list, should this actually be a set?
1193
 
        return parent_map.keys()
1194
 
 
1195
1183
    def __init__(self, _format, a_bzrdir, control_files):
1196
1184
        """Instantiate a VersionedFileRepository.
1197
1185
 
2495
2483
                            content is copied.
2496
2484
        :return: None.
2497
2485
        """
2498
 
        if self.target._format.experimental:
2499
 
            ui.ui_factory.show_user_warning('experimental_format_fetch',
2500
 
                from_format=self.source._format,
2501
 
                to_format=self.target._format)
 
2486
        ui.ui_factory.warn_experimental_format_fetch(self)
2502
2487
        from bzrlib.fetch import RepoFetcher
2503
2488
        # See <https://launchpad.net/bugs/456077> asking for a warning here
2504
2489
        if self.source._format.network_name() != self.target._format.network_name():
2943
2928
            revision_ids = fetch_spec.get_keys()
2944
2929
        else:
2945
2930
            revision_ids = None
2946
 
        if self.source._format.experimental:
2947
 
            ui.ui_factory.show_user_warning('experimental_format_fetch',
2948
 
                from_format=self.source._format,
2949
 
                to_format=self.target._format)
 
2931
        ui.ui_factory.warn_experimental_format_fetch(self)
2950
2932
        if (not self.source.supports_rich_root()
2951
2933
            and self.target.supports_rich_root()):
2952
2934
            self._converting_to_rich_root = True