From f7366f1b18cdb142c8940f6ad48141f757ea4dde Mon Sep 17 00:00:00 2001
From: davidely <davidely@localhost>
Date: Mon, 16 Jul 2007 17:22:23 +0000
Subject: [PATCH] Added ability to perform a coveragediff against an svn revision other than BASE. This will be used to perform a coveragdiff between two consecutive svn revisions, i.e. after a commit.
---
opends/build.xml | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diff --git a/opends/build.xml b/opends/build.xml
index 43a0b9c..6b5b0f6 100644
--- a/opends/build.xml
+++ b/opends/build.xml
@@ -1125,6 +1125,18 @@
<isset property="test.diff.disable" />
</condition>
+ <!-- The SVN revision to perform the diff against when calculating
+ the coverage diff. It can be a revision number, a timestamp,
+ or a revision keyword (BASE, COMMITTED, and PREV make the
+ most sense). The primary use case for this setting is to do
+ a coverage diff against the previous revision when there are
+ no changes in the working copy. It defaults to BASE. -->
+ <condition property="test.diff.from.revision" value="BASE">
+ <not>
+ <isset property="test.diff.from.revision" />
+ </not>
+ </condition>
+
<mkdir dir="${cvgdiff.report.dir}" />
<taskdef name="coveragediff" classname="org.opends.build.tools.CoverageDiff">
<classpath>
@@ -1144,7 +1156,8 @@
outputpath="${cvgdiff.report.dir}"
diffpath="${test.diff.srcpath}"
enabled="${test.diff.enabled}"
- verbose="${test.diff.verbose}" />
+ verbose="${test.diff.verbose}"
+ fromrevision="${test.diff.from.revision}" />
</target>
--
Gitblit v1.10.0