Mercurial > kallithea
diff rhodecode/lib/middleware/simplehg.py @ 1321:560206522815 beta
fixed local hgrc settings, patch introduced by Marc Villetard
author | Marcin Kuzminski <marcin@python-works.com> |
---|---|
date | Sun, 08 May 2011 20:04:35 +0200 |
parents | ae5b07e75ffd |
children | b7563ad4e7ee |
line wrap: on
line diff
--- a/rhodecode/lib/middleware/simplehg.py Sun May 08 19:58:42 2011 +0200 +++ b/rhodecode/lib/middleware/simplehg.py Sun May 08 20:04:35 2011 +0200 @@ -254,6 +254,14 @@ invalidate_cache('get_repo_cached_%s' % repo_name) def __inject_extras(self, baseui, extras={}): + """ + Injects some extra params into baseui instance + + also overwrites global settings with those takes from local hgrc file + + :param baseui: baseui instance + :param extras: dict with extra params to put into baseui + """ hgrc = os.path.join(self.repo_path, '.hg', 'hgrc') @@ -268,4 +276,4 @@ #overwrite our ui instance with the section from hgrc file for section in ui_sections: for k, v in repoui.configitems(section): - baseui.repo.ui.setconfig(section, k, v) + baseui.setconfig(section, k, v)