~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/config.py

  • Committer: Vincent Ladeuil
  • Date: 2011-12-21 10:55:43 UTC
  • mto: This revision was merged to the branch mainline in revision 6402.
  • Revision ID: v.ladeuil+lp@free.fr-20111221105543-k2e6t3d001vy84h1
Display [DEFAULT] when reporting options from bazaar.conf.

Show diffs side-by-side

added added

removed removed

Lines of Context:
3826
3826
                            self.outf.write('%s:\n' % (store.id,))
3827
3827
                            cur_store_id = store.id
3828
3828
                            cur_section = None
3829
 
                        if (section.id not in (None, 'DEFAULT')
 
3829
                        if (section.id is not None
3830
3830
                            and cur_section != section.id):
3831
 
                            # Display the section if it's not the default (or
3832
 
                            # only) one.
 
3831
                            # Display the section id as it appears in the store
 
3832
                            # (None doesn't appear by definition)
3833
3833
                            self.outf.write('  [%s]\n' % (section.id,))
3834
3834
                            cur_section = section.id
3835
3835
                        value = section.get(oname, expand=False)