~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/vf_repository.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-05 19:18:20 UTC
  • mfrom: (6047.1.1 experimental-fetch-warn)
  • Revision ID: pqm@pqm.ubuntu.com-20110805191820-dyms8ui5i6le4xtc
(jelmer) Remove UIFactory.warn_cross_format_fetch and
 UIFactory.warn_experimental_format_fetch in favor of
 UIFactory.show_user_warning. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2495
2495
                            content is copied.
2496
2496
        :return: None.
2497
2497
        """
2498
 
        ui.ui_factory.warn_experimental_format_fetch(self)
 
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)
2499
2502
        from bzrlib.fetch import RepoFetcher
2500
2503
        # See <https://launchpad.net/bugs/456077> asking for a warning here
2501
2504
        if self.source._format.network_name() != self.target._format.network_name():
2940
2943
            revision_ids = fetch_spec.get_keys()
2941
2944
        else:
2942
2945
            revision_ids = None
2943
 
        ui.ui_factory.warn_experimental_format_fetch(self)
 
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)
2944
2950
        if (not self.source.supports_rich_root()
2945
2951
            and self.target.supports_rich_root()):
2946
2952
            self._converting_to_rich_root = True