Changeset - f9dc10c33d07
[Not reviewed]
default
0 2 0
Mads Kiilerich - 9 years ago 2017-04-11 01:34:00
mads@kiilerich.com
lib: drop unused make_ui parameter checkpaths
2 files changed with 2 insertions and 3 deletions:
0 comments (0 inline, 0 general)
kallithea/lib/middleware/simplehg.py
Show inline comments
 
@@ -226,7 +226,7 @@ class SimpleHg(BaseVCSController):
 

	
 
        hgrc = os.path.join(repo_path, '.hg', 'hgrc')
 

	
 
        repoui = make_ui('file', hgrc, False)
 
        repoui = make_ui('file', hgrc)
 

	
 
        if repoui:
 
            #overwrite our ui instance with the section from hgrc file
kallithea/lib/utils.py
Show inline comments
 
@@ -316,13 +316,12 @@ ui_sections = ['alias', 'auth',
 
                'ui', 'web', ]
 

	
 

	
 
def make_ui(read_from='file', path=None, checkpaths=True, clear_session=True):
 
def make_ui(read_from='file', path=None, clear_session=True):
 
    """
 
    A function that will read python rc files or database
 
    and make an mercurial ui object from read options
 

	
 
    :param path: path to mercurial config file
 
    :param checkpaths: check the path
 
    :param read_from: read from 'file' or 'db'
 
    """
 

	
0 comments (0 inline, 0 general)