Index: buildbot/changes/hgpoller.py
===================================================================
RCS file: /cvsroot/mozilla/tools/buildbot/buildbot/changes/hgpoller.py,v
retrieving revision 1.1
diff -u -r1.1 hgpoller.py
--- buildbot/changes/hgpoller.py	3 Aug 2007 15:02:18 -0000	1.1
+++ buildbot/changes/hgpoller.py	30 Jan 2008 21:13:42 -0000
@@ -108,6 +108,9 @@
                                when = change["pubDate"],
                                branch = self.branch)
             self.parent.addChange(c)
-        self.lastChange = max(self.lastPoll, *[c["pubDate"] for c in
-                                                   change_list])
+        if len(change_list) > 0:
+            self.lastChange = max(self.lastPoll, *[c["pubDate"] for c in
+                                                       change_list])
+        else:
+            self.lastChange = self.lastPoll
 
