提交 6e93c5dc 编写于 作者: K kohsuke

added a debug switch to dump "svn info" output for trouble-shooting.


git-svn-id: https://hudson.dev.java.net/svn/hudson/trunk/hudson/main@1607 71c3de6d-444a-0410-be80-ed276b4c234a
上级 14420835
......@@ -267,6 +267,11 @@ public class SubversionSCM extends AbstractCVSFamilySCM {
throw new IOException("svn info failed");
}
if(dumpSvnInfo) {
// dump the output for debugging
listener.getLogger().write(baos.toByteArray());
}
SvnInfo info = new SvnInfo();
Digester digester = new Digester();
......@@ -549,4 +554,9 @@ public class SubversionSCM extends AbstractCVSFamilySCM {
private static final Pattern SVN_VERSION = Pattern.compile("svn, .+ ([0-9.]+) \\(r([0-9]+)\\)");
private static final Logger LOGGER = Logger.getLogger(SubversionSCM.class.getName());
/**
* Debug switch to dump "svn info" output, to troubleshoot issue #167.
*/
public static boolean dumpSvnInfo = false;
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册