diff mercurial/hgweb.py @ 1130:1ad52c7679e1

Longer variable names in hgwebdir: l->repos, v->name, r->path
author Thomas Arendsen Hein <thomas@intevation.de>
date Sun, 28 Aug 2005 17:53:37 +0200
parents ee4f60abad93
children a67982e64109
line wrap: on
line diff
--- a/mercurial/hgweb.py	Sun Aug 28 17:29:28 2005 +0200
+++ b/mercurial/hgweb.py	Sun Aug 28 17:53:37 2005 +0200
@@ -939,11 +939,11 @@
 
         def entries(**map):
             parity = 0
-            l = self.cp.items("paths")
-            l.sort()
-            for v,r in l:
+            repos = self.cp.items("paths")
+            repos.sort()
+            for name, path in repos:
                 cp2 = ConfigParser.SafeConfigParser()
-                cp2.read(os.path.join(r, ".hg", "hgrc"))
+                cp2.read(os.path.join(path, ".hg", "hgrc"))
 
                 def get(sec, val, default):
                     try:
@@ -951,15 +951,15 @@
                     except:
                         return default
 
-                url = os.environ["REQUEST_URI"] + "/" + v
+                url = os.environ["REQUEST_URI"] + "/" + name
                 url = url.replace("//", "/")
 
                 yield dict(author=get("web", "author", "unknown"),
-                           name=get("web", "name", v),
+                           name=get("web", "name", name),
                            url=url,
                            parity=parity,
                            shortdesc=get("web", "description", "unknown"),
-                           lastupdate=os.stat(os.path.join(r, ".hg",
+                           lastupdate=os.stat(os.path.join(path, ".hg",
                                                 "00changelog.d")).st_mtime)
 
                 parity = 1 - parity