Show More
@@ -922,6 +922,12 b' def server(path, name, templates, addres' | |||||
922 | # This is a stopgap |
|
922 | # This is a stopgap | |
923 | class hgwebdir: |
|
923 | class hgwebdir: | |
924 | def __init__(self, config): |
|
924 | def __init__(self, config): | |
|
925 | if type(config) == type([]): | |||
|
926 | self.repos = config | |||
|
927 | elif type(config) == type({}): | |||
|
928 | self.repos = config.items() | |||
|
929 | self.repos.sort() | |||
|
930 | else: | |||
925 | cp = ConfigParser.SafeConfigParser() |
|
931 | cp = ConfigParser.SafeConfigParser() | |
926 | cp.read(config) |
|
932 | cp.read(config) | |
927 | self.repos = cp.items("paths") |
|
933 | self.repos = cp.items("paths") |
General Comments 0
You need to be logged in to leave comments.
Login now