#NEWLINE# def make_ui( self , path = 'hgwebdir.config' ) : #NEWLINE# #INDENT# '\n    A funcion that will read python rc files and make an ui from read options\n\n    :param path: path to mercurial config file\n    ' #NEWLINE# sections = [ 'alias' , 'auth' , 'decode/encode' , 'defaults' , 'diff' , 'email' , 'extensions' , 'format' , 'merge-patterns' , 'merge-tools' , 'hooks' , 'http_proxy' , 'smtp' , 'patch' , 'paths' , 'profiling' , 'server' , 'trusted' , 'ui' , 'web' ] #NEWLINE# repos = path #NEWLINE# baseui = ui . ui ( ) #NEWLINE# cfg = config . config ( ) #NEWLINE# cfg . read ( repos ) #NEWLINE# self . paths = cfg . items ( 'paths' ) #NEWLINE# self . base_path = self . paths [ 0 ] [ 1 ] . replace ( '*' , '' ) #NEWLINE# self . check_repo_dir ( self . paths ) #NEWLINE# self . set_statics ( cfg ) #NEWLINE# for section in sections : #NEWLINE# #INDENT# for ( k , v ) in cfg . items ( section ) : #NEWLINE# #INDENT# baseui . setconfig ( cfg , k , v ) #NEWLINE# #UNINDENT# #UNINDENT# return baseui