##// END OF EJS Templates
Reimplemented way of caching repos list, hg model now get's repos objects right from cached dict, this way we skipp creating instances of MercurialRepository and gain performance. Some import cleanup
Reimplemented way of caching repos list, hg model now get's repos objects right from cached dict, this way we skipp creating instances of MercurialRepository and gain performance. Some import cleanup

File last commit:

r6:2620dac8 default
r245:a83a1799 default
Show More
configparser_test.py
11 lines | 271 B | text/x-python | PythonLexer
import os
p = os.path.dirname(__file__)
repos = os.path.join(p, '../..', 'hgwebdir.config')
#repos = "/home/marcink/python_workspace/hg_app/hgwebdir.config"
print repos
from ConfigParser import ConfigParser
cp = ConfigParser()
cp.read(repos)
print cp.get('paths', '/')