~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

(vila) Add {basename} as a section local configuration option. (Vincent
 Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
3027
3027
        super(LocationSection, self).__init__(section.id, section.options)
3028
3028
        self.length = length
3029
3029
        self.extra_path = extra_path
3030
 
        self.locals = {'relpath': extra_path}
 
3030
        self.locals = {'relpath': extra_path,
 
3031
                       'basename': urlutils.basename(extra_path)}
3031
3032
 
3032
3033
    def get(self, name, default=None, expand=True):
3033
3034
        value = super(LocationSection, self).get(name, default)