From c5d6a2ec84762ec14d6b0c2102a5fc7853c37551 Mon Sep 17 00:00:00 2001 From: warner Date: Wed, 7 Feb 2007 01:34:02 +0100 Subject: [PATCH] steps.source: when our SourceStamp has a patch, add the contents of the patch as a LogFile --- Branch.changelog | 4 ++++ buildbot/steps/source.py | 2 ++ 2 files changed, 6 insertions(+) diff --git a/Branch.changelog b/Branch.changelog index c3ac1dd..5cd1f17 100644 --- a/Branch.changelog +++ b/Branch.changelog @@ -1,5 +1,9 @@ 2007-02-06 Brian Warner + * buildbot/steps/source.py (Source.start): if we're using a patch, + add it as a LogFile to the checkout/update step. This will turn + into a link on the waterfall page. + * buildbot/scripts/tryclient.py (Try.createJob): implement --diff option, to take the patch from a pre-made file rather than generating it from the local tree. diff --git a/buildbot/steps/source.py b/buildbot/steps/source.py index 102de32..4706c94 100644 --- a/buildbot/steps/source.py +++ b/buildbot/steps/source.py @@ -169,6 +169,8 @@ class Source(LoggingBuildStep): # 'patch' is None or a tuple of (patchlevel, diff) patch = s.patch + if patch: + self.addCompleteLog("patch", patch[1]) self.startVC(branch, revision, patch) -- 2.11.4.GIT