# HG changeset patch # User Jeff Hammel # Date 1376192150 25200 # Node ID 529fd4e1087eee44d37dfecf9e99cda470b46719 # Parent 0a9e1e0d077cdb84556a57a679b33fb63d91bb29 python/hgrc.py diff -r 0a9e1e0d077c -r 529fd4e1087e python/hgrc.py --- a/python/hgrc.py Sat Aug 10 19:51:35 2013 -0700 +++ b/python/hgrc.py Sat Aug 10 20:35:50 2013 -0700 @@ -14,8 +14,16 @@ import urlparse from ConfigParser import RawConfigParser as ConfigParser +class section(object): + def __init__(self, function, section_name, *section_names): + self.function = function + self.sections = [section_name] + self.sections.extend(section_names) + def __call__(self, parser): + import pdb; pdb.set_trace() + #@parser # decorator makes this x-form path -> ConfigParser automagically -#@section('paths') +@section('paths') def set_default(parser, default): """set [paths]:default"""