hg site extension
 
(Arne Babenhauserheide)
2012-10-30: started the function to write all bug info. Not yet done. write-bug-details-1d631d51ff06b3bdca50e21da3d6a00bcb801c85

started the function to write all bug info. Not yet done.

diff --git a/staticsite.py b/staticsite.py
--- a/staticsite.py
+++ b/staticsite.py
@@ -216,7 +216,7 @@ def writeoverview(ui, repo, target, name
     # and the bugs
     openbugs, resolvedbugs = getbugs(ui, repo)
     if openbugs or resolvedbugs:
-        overview += " | " + _("bugs")
+        overview += " | <a href=\"bugs\">" + _("bugs") + "</a>"
         if openbugs:
             overview += " <span class=\"bugnumbers\">(<span class=\"openbugnumber\">" + str(len(openbugs)) + "!</span> "
         else:
@@ -551,6 +551,15 @@ def writecommits(ui, repo, target, name,
             cf.write("<pre>"+ui.popbuffer().replace("<", "<")+"</pre>")
             cf.write(templates["foot"].replace("{reponame}", "<a href='../'>"+name+"</a>"))
 
+def writebugs(ui, repo, target, name):
+    """Write bug information, a listing and the details for each bug."""
+    bugdir = os.path.join(target, "commit")
+    
+    # create the folders
+    if not os.path.isdir(bugdir):
+        os.makedirs(bugdir)
+
+
 def escapename(filename):
     """escape index.html as .index.html and .ind… as ..ind… and so fort."""
     if _indexregexp.match(filename) is not None: