~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/repository.py

(vila) Provide a config section matcher respecting the file order. (Vincent
 Ladeuil)

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.GlobalStack()
 
1227
                conf = config.GlobalConfig()
1228
1228
            else:
1229
 
                conf = branch.get_config_stack()
1230
 
            if 'format_deprecation' in conf.get('suppress_warnings'):
 
1229
                conf = branch.get_config()
 
1230
            if conf.suppress_warning('format_deprecation'):
1231
1231
                return
1232
1232
            warning("Format %s for %s is deprecated -"
1233
1233
                    " please use 'bzr upgrade' to get better performance"