[Lsb-messages] /var/www/bzr/lsb/devel/buildbot-config r212: Reset the bzr poller so it skips all recent changes on startup.

Jeff Licquia licquia at linuxfoundation.org
Sat Feb 11 19:11:35 UTC 2012


------------------------------------------------------------
revno: 212
committer: Jeff Licquia <licquia at linuxfoundation.org>
branch nick: buildbot-config
timestamp: Sat 2012-02-11 14:11:35 -0500
message:
  Reset the bzr poller so it skips all recent changes on startup.
modified:
  bzr_buildbot.py
-------------- next part --------------
=== modified file 'bzr_buildbot.py'
--- a/bzr_buildbot.py	2012-02-01 00:22:40 +0000
+++ b/bzr_buildbot.py	2012-02-11 19:11:35 +0000
@@ -274,18 +274,18 @@
             changes = []
             change = generate_change(
                 branch, blame_merge_author=self.blame_merge_author)
-            if (self.last_revision is None or
-                change['revision'] > self.last_revision):
+            if self.last_revision is None:
+                self.last_revision = change['revision']
+            elif change['revision'] > self.last_revision:
                 change['branch'] = branch_name
                 change['category'] = self.category
                 changes.append(change)
-                if self.last_revision is not None:
-                    while self.last_revision + 1 < change['revision']:
-                        change = generate_change(
-                            branch, new_revno=change['revision']-1,
-                            blame_merge_author=self.blame_merge_author)
-                        change['branch'] = branch_name
-                        changes.append(change)
+                while self.last_revision + 1 < change['revision']:
+                    change = generate_change(
+                        branch, new_revno=change['revision']-1,
+                        blame_merge_author=self.blame_merge_author)
+                    change['branch'] = branch_name
+                    changes.append(change)
             changes.reverse()
             return changes
 



More information about the lsb-messages mailing list