/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/repository.py

  • Committer: Martin Pool
  • Date: 2010-02-25 04:31:05 UTC
  • mto: (4634.139.3 2.0)
  • mto: This revision was merged to the branch mainline in revision 5118.
  • Revision ID: mbp@sourcefrog.net-20100225043105-1brt8ftw9jn3d05n
Generalize to ui_factory.show_user_warning

Show diffs side-by-side

added added

removed removed

Lines of Context:
3409
3409
        from bzrlib.fetch import RepoFetcher
3410
3410
        # See <https://launchpad.net/bugs/456077> asking for a warning here
3411
3411
        if self.source._format.network_name() != self.target._format.network_name():
3412
 
            ui.ui_factory.warn_cross_format_fetch(self.source._format,
3413
 
                self.target._format)
 
3412
            ui.ui_factory.show_user_warning('cross_format_fetch',
 
3413
                from_format=self.source._format,
 
3414
                to_format=self.target._format)
3414
3415
        f = RepoFetcher(to_repository=self.target,
3415
3416
                               from_repository=self.source,
3416
3417
                               last_revision=revision_id,
3992
3993
            self._converting_to_rich_root = False
3993
3994
        # See <https://launchpad.net/bugs/456077> asking for a warning here
3994
3995
        if self.source._format.network_name() != self.target._format.network_name():
3995
 
            ui.ui_factory.warn_cross_format_fetch(self.source._format,
3996
 
                self.target._format)
 
3996
            ui.ui_factory.show_user_warning('cross_format_fetch',
 
3997
                from_format=self.source._format,
 
3998
                to_format=self.target._format)
3997
3999
        revision_ids = self.target.search_missing_revision_ids(self.source,
3998
4000
            revision_id, find_ghosts=find_ghosts).get_keys()
3999
4001
        if not revision_ids: