Show More
@@ -922,6 +922,12 b' def server(path, name, templates, addres' | |||
|
922 | 922 | # This is a stopgap |
|
923 | 923 | class hgwebdir: |
|
924 | 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 | 931 | cp = ConfigParser.SafeConfigParser() |
|
926 | 932 | cp.read(config) |
|
927 | 933 | self.repos = cp.items("paths") |
General Comments 0
You need to be logged in to leave comments.
Login now