From e454d5c7a6baefde390e91ef5e03d9f6910e9411 Mon Sep 17 00:00:00 2001 From: warner Date: Mon, 1 Oct 2007 01:13:14 +0100 Subject: [PATCH] hg: log a warning if we must guess at which Change is the most recent --- ChangeLog | 3 +++ buildbot/steps/source.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 4aeae07..ab0d45a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-09-30 Brian Warner + * buildbot/steps/source.py (Mercurial.computeSourceRevision): log a + warning if we must invoke the last-change-is-most-recent guess + * buildbot/status/web/baseweb.py (Waterfall.__init__): if an old Waterfall is running in an upgraded master (which is the usual case for folks who have followed the instructions to run diff --git a/buildbot/steps/source.py b/buildbot/steps/source.py index 8da5eb7..dac7dea 100644 --- a/buildbot/steps/source.py +++ b/buildbot/steps/source.py @@ -897,6 +897,10 @@ class Mercurial(Source): # changes at all. So for now, assume they were given to us in sorted # order, and just pay attention to the last one. See ticket #103 for # more details. + if len(changes) > 1: + log.msg("Mercurial.computeSourceRevision: warning: " + "there are %d changes here, assuming the last one is " + "the most recent" % len(changes)) return changes[-1].revision -- 2.11.4.GIT