Skip to content

Commit

Permalink
Assume changes from the future really happened now
Browse files Browse the repository at this point in the history
Refs #967
  • Loading branch information
PiotrSikora authored and Dustin J. Mitchell committed Aug 17, 2010
1 parent b706478 commit bb4dc12
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions master/buildbot/changes/changes.py
Expand Up @@ -57,9 +57,11 @@ def none_or_unicode(x):
return unicode(x)

self.revision = none_or_unicode(revision)
if when is None:
when = util.now()
self.when = when
now = util.now()
if when is None or when > now:
self.when = now
else:
self.when = when
self.branch = none_or_unicode(branch)
self.category = none_or_unicode(category)
self.revlink = revlink
Expand Down

0 comments on commit bb4dc12

Please sign in to comment.