diff --git a/hggit/compat.py b/hggit/compat.py index b236d7259c2d843a5d53595f7ebc6d0315e28988_aGdnaXQvY29tcGF0LnB5..a2eccdeed26d809e084ec211858c711b45d31b56_aGdnaXQvY29tcGF0LnB5 100644 --- a/hggit/compat.py +++ b/hggit/compat.py @@ -60,3 +60,13 @@ if len(refs) == 0: return None, set([]) return refs, set(server_capabilities) + + +CONFIG_DEFAULTS = { +} + +def config(ui, subtype, section, item): + if subtype == 'string': + subtype = '' + getconfig = getattr(ui, 'config' + subtype) + return getconfig(section, item, CONFIG_DEFAULTS[section][item])