Changeset - 092e897458fa
[Not reviewed]
default
0 1 0
Mads Kiilerich (mads) - 5 years ago 2021-04-21 14:52:00
mads@kiilerich.com
hg: read hgrc, also in repo_scan

This might make a difference in some real world cases.
1 file changed with 1 insertions and 2 deletions:
0 comments (0 inline, 0 general)
kallithea/model/scm.py
Show inline comments
 
@@ -172,7 +172,6 @@ class ScmModel(object):
 

	
 
        log.info('scanning for repositories in %s', repos_path)
 

	
 
        baseui = make_ui()
 
        repos = {}
 

	
 
        for name, path in get_filesystem_repos(repos_path):
 
@@ -185,7 +184,7 @@ class ScmModel(object):
 
                    raise RepositoryError('Duplicate repository name %s '
 
                                          'found in %s' % (name, path))
 
                else:
 
                    repos[name] = get_repo(path[1], baseui=baseui)
 
                    repos[name] = get_repo(path[1], baseui=make_ui(path[1]))
 
            except (OSError, VCSError):
 
                continue
 
        log.debug('found %s paths with repositories', len(repos))
0 comments (0 inline, 0 general)