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

  • Committer: Andrew Bennetts
  • Date: 2009-11-19 06:28:13 UTC
  • mfrom: (4811 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4812.
  • Revision ID: andrew.bennetts@canonical.com-20091119062813-t6sd6gwbot8nfyze
MergeĀ lp:bzr.

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        """Get the users pop up editor."""
154
154
        raise NotImplementedError
155
155
 
 
156
    def get_change_editor(self, old_tree, new_tree):
 
157
        from bzrlib import diff
 
158
        cmd = self._get_change_editor()
 
159
        if cmd is None:
 
160
            return None
 
161
        return diff.DiffFromTool.from_string(cmd, old_tree, new_tree,
 
162
                                             sys.stdout)
 
163
 
 
164
 
156
165
    def get_mail_client(self):
157
166
        """Get a mail client to use"""
158
167
        selected_client = self.get_user_option('mail_client')
346
355
        """Return the policy for the given (section, option_name) pair."""
347
356
        return POLICY_NONE
348
357
 
 
358
    def _get_change_editor(self):
 
359
        return self.get_user_option('change_editor')
 
360
 
349
361
    def _get_signature_checking(self):
350
362
        """See Config._get_signature_checking."""
351
363
        policy = self._get_user_option('check_signatures')
679
691
 
680
692
        return self._get_best_value('_get_user_id')
681
693
 
 
694
    def _get_change_editor(self):
 
695
        return self._get_best_value('_get_change_editor')
 
696
 
682
697
    def _get_signature_checking(self):
683
698
        """See Config._get_signature_checking."""
684
699
        return self._get_best_value('_get_signature_checking')