[Buildbot-commits] buildbot/buildbot/steps source.py,1.8,1.9

Brian Warner warner at users.sourceforge.net
Sun Sep 30 21:16:38 UTC 2007


Update of /cvsroot/buildbot/buildbot/buildbot/steps
In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv10911/buildbot/steps

Modified Files:
	source.py 
Log Message:
[project @ hg: log a warning if we must guess at which Change is the most recent]

Original author: warner at lothar.com
Date: 2007-09-30 20:13:14+00:00

Index: source.py
===================================================================
RCS file: /cvsroot/buildbot/buildbot/buildbot/steps/source.py,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- source.py	30 Sep 2007 02:36:34 -0000	1.8
+++ source.py	30 Sep 2007 21:16:32 -0000	1.9
@@ -897,6 +897,10 @@
         # 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
 
 





More information about the Commits mailing list