/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: Vincent Ladeuil
  • Date: 2011-11-14 16:36:31 UTC
  • mto: This revision was merged to the branch mainline in revision 6278.
  • Revision ID: v.ladeuil+lp@free.fr-20111114163631-wj99n1ha7bxmbqno
Add ``basename`` as a section local option

Show diffs side-by-side

added added

removed removed

Lines of Context:
3008
3008
        super(LocationSection, self).__init__(section.id, section.options)
3009
3009
        self.length = length
3010
3010
        self.extra_path = extra_path
3011
 
        self.locals = {'relpath': extra_path}
 
3011
        self.locals = {'relpath': extra_path,
 
3012
                       'basename': urlutils.basename(extra_path)}
3012
3013
 
3013
3014
    def get(self, name, default=None):
3014
3015
        value = super(LocationSection, self).get(name, default)