diff mercurial/graphmod.py @ 7565:5f162f61e479

hgweb: fix problems with empty repositories
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Sun, 04 Jan 2009 19:10:42 +0100
parents 810ca383da9c
children 4a4c7f6a5912
line wrap: on
line diff
--- a/mercurial/graphmod.py	Sat Jan 03 20:16:10 2009 +0100
+++ b/mercurial/graphmod.py	Sun Jan 04 19:10:42 2009 +0100
@@ -26,6 +26,9 @@
       - The changeset date/time
     """
 
+    if start_rev == nullrev and not stop_rev:
+        return
+
     assert start_rev >= stop_rev
     assert stop_rev >= 0
     curr_rev = start_rev