changeset 6585:84cca4c4808b

vcs: drop unused baseui_config.py
author Mads Kiilerich <mads@kiilerich.com>
date Tue, 11 Apr 2017 01:35:30 +0200
parents f9dc10c33d07
children 8c686b00ebae
files kallithea/lib/vcs/utils/baseui_config.py scripts/manifest
diffstat 2 files changed, 0 insertions(+), 48 deletions(-) [+]
line wrap: on
line diff
--- a/kallithea/lib/vcs/utils/baseui_config.py	Tue Apr 11 01:34:00 2017 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,47 +0,0 @@
-from kallithea.lib.vcs.utils.hgcompat import ui, config
-
-
-def make_ui(self, path='hgwebdir.config'):
-    """
-    A function that will read python rc files and make an ui from read options
-
-    :param path: path to mercurial config file
-    """
-    #propagated from mercurial documentation
-    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',
-                ]
-
-    repos = path
-    baseui = ui.ui()
-    cfg = config.config()
-    cfg.read(repos)
-    self.paths = cfg.items('paths')
-    self.base_path = self.paths[0][1].replace('*', '')
-    self.check_repo_dir(self.paths)
-    self.set_statics(cfg)
-
-    for section in sections:
-        for k, v in cfg.items(section):
-            baseui.setconfig(section, k, v)
-
-    return baseui
--- a/scripts/manifest	Tue Apr 11 01:34:00 2017 +0200
+++ b/scripts/manifest	Tue Apr 11 01:35:30 2017 +0200
@@ -395,7 +395,6 @@
 kallithea/lib/vcs/utils/__init__.py
 kallithea/lib/vcs/utils/annotate.py
 kallithea/lib/vcs/utils/archivers.py
-kallithea/lib/vcs/utils/baseui_config.py
 kallithea/lib/vcs/utils/compat.py
 kallithea/lib/vcs/utils/diffs.py
 kallithea/lib/vcs/utils/fakemod.py