提交 c0be89f6 编写于 作者: K kohsuke

Adding ability to avoid computing changelog for HUDSON-1346


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@7921 71c3de6d-444a-0410-be80-ed276b4c234a
上级 8b5785fe
......@@ -669,6 +669,10 @@ public class CVSSCM extends SCM implements Serializable {
listener.getLogger().println("$ no changes detected");
return createEmptyChangeLog(changelogFile,listener, "changelog");
}
if(skipChangeLog) {
listener.getLogger().println("Skipping changelog computation");
return createEmptyChangeLog(changelogFile,listener, "changelog");
}
listener.getLogger().println("$ computing changelog");
......@@ -1412,4 +1416,10 @@ public class CVSSCM extends SCM implements Serializable {
public static boolean debug = false;
private static final long serialVersionUID = 1L;
/**
* True to avoid computing the changelog. Useful with ancient versions of CVS that doesn't support
* the -d option in the log command. See #1346.
*/
public static boolean skipChangeLog = Boolean.getBoolean(CVSSCM.class.getName()+".skipChangeLog");
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册