~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Erik Bågfors
  • Date: 2006-02-05 19:49:46 UTC
  • mto: (1558.1.9 Aaron's integration)
  • mto: This revision was merged to the branch mainline in revision 1574.
  • Revision ID: erik@bagfors.nu-20060205194946-ce8d8bf0361dc98f
support for aliases in bazaar.conf

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
    def __init__(self):
257
257
        super(GlobalConfig, self).__init__(config_filename)
258
258
 
 
259
class AliasConfig(IniBasedConfig):
 
260
    def get_alias(self, value):
 
261
        return self._get_user_option(value)
 
262
 
 
263
    def _get_section(self):
 
264
        return "ALIASES"
 
265
 
 
266
    def __init__(self):
 
267
        super(AliasConfig, self).__init__(config_filename)
259
268
 
260
269
class LocationConfig(IniBasedConfig):
261
270
    """A configuration object that gives the policy for a location."""