From 6e93c5dcaa890871c8bf4e8097e7396c5eca29a5 Mon Sep 17 00:00:00 2001 From: kohsuke Date: Thu, 4 Jan 2007 00:41:26 +0000 Subject: [PATCH] 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 --- core/src/main/java/hudson/scm/SubversionSCM.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/core/src/main/java/hudson/scm/SubversionSCM.java b/core/src/main/java/hudson/scm/SubversionSCM.java index 154bb4ff0c..44d5959bc1 100644 --- a/core/src/main/java/hudson/scm/SubversionSCM.java +++ b/core/src/main/java/hudson/scm/SubversionSCM.java @@ -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; }