From users-return-21448-apmail-subversion-users-archive=subversion.apache.org@subversion.apache.org Mon May 19 13:59:24 2014 Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 63C861110E for ; Mon, 19 May 2014 13:59:24 +0000 (UTC) Received: (qmail 69078 invoked by uid 500); 19 May 2014 13:59:24 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 69041 invoked by uid 500); 19 May 2014 13:59:24 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Delivered-To: moderator for users@subversion.apache.org Received: (qmail 96468 invoked by uid 99); 19 May 2014 00:23:19 -0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (athena.apache.org: transitioning domain of itisajay@gmail.com does not designate 216.139.236.26 as permitted sender) Date: Sun, 18 May 2014 17:22:53 -0700 (PDT) From: ajaydeo To: users@subversion.apache.org Message-ID: <1400458973955-188659.post@n5.nabble.com> Subject: Getting a diff file from java svnkit MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I need to get all the changes that happened in a particular svn revision. In short, I have revision number and URL to the svn To accomplish it, from command line I use following command: svn diff -c 1593651 http://svn.apache.org/repos/asf/lucene/dev/trunk Now, same thing I need to get through Java SVNKIT. I am using following code: ByteArrayOutputStream baos = new ByteArrayOutputStream(); PrintStream result = new PrintStream(baos); File file = new File(javaClass); // getting svn client manager SVNClientManager clientManager = Utility.getSvnClientManager(); SVNDiffClient diffClient = clientManager.getDiffClient(); diffClient.doDiff(svnURL, svnRevNumber, svnRevNumber1,svnRevNumber, SVNDepth.FILES, true, result); String resultString = baos.toString(); However, the output in resultString is always empty. Please, provide me with the appropriate solution. Thanking you in advance. Appreciate it. -- View this message in context: http://subversion.1072662.n5.nabble.com/Getting-a-diff-file-from-java-svnkit-tp188659.html Sent from the Subversion Users mailing list archive at Nabble.com.