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
This commit is contained in:
kohsuke committed 2007-01-04 00:41:26 +00:00
1 parent 144208352c
commit 6e93c5dcaa
1 file changed
+10
@@ -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;
}