hg site extension
 
(Arne Babenhauserheide)
2012-11-04: show the default branch in the branch list, if there are other named

show the default branch in the branch list, if there are other named branches, too.

diff --git a/staticsite.py b/staticsite.py
--- a/staticsite.py
+++ b/staticsite.py
@@ -255,6 +255,8 @@ def writeoverview(ui, repo, target, name
     for branch, heads in repo.branchmap().items(): 
         if branch and branch != "default": # not default
             branches.extend(heads)
+    if branches:
+        branches.extend(repo.branchmap()["default"])
             
     try: 
         tags = repo.tags()
@@ -273,7 +275,7 @@ def writeoverview(ui, repo, target, name
         overview += overviewlogstring(ui, repo, branches,
                                       template=templates["commitlog"].replace(
                 "{branches}", "XXXXX").replace(
-                "{date|shortdate}", "{branches}").replace(
+                "{date|shortdate}", "{branch}").replace(
                 "XXXXX", "{date|shortdate}").replace(
                 "{tags}", "XXXXX").replace(
                 "{date|shortdate}", "{tags}").replace(