Show More
@@ -939,11 +939,11 b' class hgwebdir:' | |||||
939 |
|
939 | |||
940 | def entries(**map): |
|
940 | def entries(**map): | |
941 | parity = 0 |
|
941 | parity = 0 | |
942 |
|
|
942 | repos = self.cp.items("paths") | |
943 |
|
|
943 | repos.sort() | |
944 |
for |
|
944 | for name, path in repos: | |
945 | cp2 = ConfigParser.SafeConfigParser() |
|
945 | cp2 = ConfigParser.SafeConfigParser() | |
946 |
cp2.read(os.path.join( |
|
946 | cp2.read(os.path.join(path, ".hg", "hgrc")) | |
947 |
|
947 | |||
948 | def get(sec, val, default): |
|
948 | def get(sec, val, default): | |
949 | try: |
|
949 | try: | |
@@ -951,15 +951,15 b' class hgwebdir:' | |||||
951 | except: |
|
951 | except: | |
952 | return default |
|
952 | return default | |
953 |
|
953 | |||
954 |
url = os.environ["REQUEST_URI"] + "/" + |
|
954 | url = os.environ["REQUEST_URI"] + "/" + name | |
955 | url = url.replace("//", "/") |
|
955 | url = url.replace("//", "/") | |
956 |
|
956 | |||
957 | yield dict(author=get("web", "author", "unknown"), |
|
957 | yield dict(author=get("web", "author", "unknown"), | |
958 |
name=get("web", "name", |
|
958 | name=get("web", "name", name), | |
959 | url=url, |
|
959 | url=url, | |
960 | parity=parity, |
|
960 | parity=parity, | |
961 | shortdesc=get("web", "description", "unknown"), |
|
961 | shortdesc=get("web", "description", "unknown"), | |
962 |
lastupdate=os.stat(os.path.join( |
|
962 | lastupdate=os.stat(os.path.join(path, ".hg", | |
963 | "00changelog.d")).st_mtime) |
|
963 | "00changelog.d")).st_mtime) | |
964 |
|
964 | |||
965 | parity = 1 - parity |
|
965 | parity = 1 - parity |
General Comments 0
You need to be logged in to leave comments.
Login now