~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

  • Committer: Jelmer Vernooij
  • Date: 2012-01-27 21:59:34 UTC
  • mto: This revision was merged to the branch mainline in revision 6452.
  • Revision ID: jelmer@samba.org-20120127215934-d5lupaxico234zn6
Convert 'suppress_warnings' option to config stacks.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1224
1224
            return
1225
1225
        try:
1226
1226
            if branch is None:
1227
 
                conf = config.GlobalConfig()
 
1227
                conf = config.GlobalStack()
1228
1228
            else:
1229
 
                conf = branch.get_config()
1230
 
            if conf.suppress_warning('format_deprecation'):
 
1229
                conf = branch.get_config_stack()
 
1230
            if 'format_deprecation' in conf.get('suppress_warnings'):
1231
1231
                return
1232
1232
            warning("Format %s for %s is deprecated -"
1233
1233
                    " please use 'bzr upgrade' to get better performance"