hg site extension
 
(Arne Babenhauserheide)
2012-02-21: FIX: crash if there were no tags in the repo.

FIX: crash if there were no tags in the repo.

diff --git a/site.py b/site.py
--- a/site.py
+++ b/site.py
@@ -129,8 +129,14 @@ def writeoverview(ui, repo, target, name
         if branch and branch != "default": # not default
             branches.extend(heads)
 
-    tags = repo._tags
-    bookmarks = repo._bookmarks
+    try: 
+        tags = repo._tags
+    except AttributeError: 
+        tags = []
+    try: 
+        bookmarks = repo._bookmarks
+    except AttributeError:
+        bookmarks = []
     if branches: # add branches
         overview += "\n<h2>Branches</h2>\n"
         overview += overviewlogstring(ui, repo, branches,