diff mercurial/graphmod.py @ 7030:20a5dd5d6dd9

hgweb: let the web graph cope with low revisions/new repositories (issue1293)
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Fri, 12 Sep 2008 16:15:01 +0200
parents f6c00b17387c
children 810ca383da9c
line wrap: on
line diff
--- a/mercurial/graphmod.py	Fri Sep 05 17:28:37 2008 +0200
+++ b/mercurial/graphmod.py	Fri Sep 12 16:15:01 2008 +0200
@@ -27,6 +27,7 @@
     """
 
     assert start_rev >= stop_rev
+    assert stop_rev >= 0
     curr_rev = start_rev
     revs = []
     cl = repo.changelog