~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

(jelmer) Allow control directories to not support branch names containing
 slashes. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
205
205
        """Returns a unique ID for the config."""
206
206
        raise NotImplementedError(self.config_id)
207
207
 
 
208
    @deprecated_method(deprecated_in((2, 4, 0)))
 
209
    def get_editor(self):
 
210
        """Get the users pop up editor."""
 
211
        raise NotImplementedError
 
212
 
208
213
    def get_change_editor(self, old_tree, new_tree):
209
214
        from bzrlib import diff
210
215
        cmd = self._get_change_editor()
1051
1056
        conf._create_from_string(str_or_unicode, save)
1052
1057
        return conf
1053
1058
 
 
1059
    @deprecated_method(deprecated_in((2, 4, 0)))
 
1060
    def get_editor(self):
 
1061
        return self._get_user_option('editor')
 
1062
 
1054
1063
    @needs_write_lock
1055
1064
    def set_user_option(self, option, value):
1056
1065
        """Save option and its value in the configuration."""