Hi Alex,
           Calling bellow method is returning all the revision numbers ... I
am going wrong anywhere ... 



public List<ReportDetails> CompareEntries(
            ISVNAuthenticationManager authManager, String url1, String url2,
            boolean recursive) {
        SVNDiffClient diffClient = new SVNDiffClient(authManager, null);
        final List<ReportDetails> svnLogEntries = new
ArrayList<ReportDetails>();
        try {
            // Log event handler
            ISVNLogEntryHandler handler = new ISVNLogEntryHandler() {
                @Override
                public void handleLogEntry(SVNLogEntry logEntry)
                        throws SVNException {
                    ReportDetails  reportDetails = new ReportDetails();
                    reportDetails.setAuthor(logEntry.getAuthor( ));
                    System.out.println(
"---------------------------------------------" );
                    System.out.println ("revision: " + logEntry.getRevision(
) );
                    System.out.println( "author: " + logEntry.getAuthor( )
);
                   
                                       if ( logEntry.getChangedPaths(
).size( ) > 0 ) {
                   
                                           ArrayList<String> filenamelist =
new ArrayList<String>();
                                          
                                           Set changedPathsSet =
logEntry.getChangedPaths( ).keySet( );
                                           for ( Iterator changedPaths =
changedPathsSet.iterator( ); changedPaths.hasNext( ); ) {
                                          
                                               SVNLogEntryPath entryPath = (
SVNLogEntryPath ) logEntry.getChangedPaths( ).get( changedPaths.next( ) );   
                                              
                                          
filenamelist.add(entryPath.getCopyPath());
                                           System.out.println(
                                                 entryPath.getPath());
                  
                                              
                                           }
                                          
                                          
reportDetails.setChangedFileName(filenamelist);
                                     }

                                           svnLogEntries.add(reportDetails);

                }
            };
            diffClient.doGetLogEligibleMergeInfo(SVNHelper.getSVNURL(url1),
                    SVNRevision.HEAD, SVNHelper.getSVNURL(url2),
                    SVNRevision.HEAD, true, null, handler);
        } catch (SVNException e) {
            e.printStackTrace();
        }
        return svnLogEntries;
    }




--
View this message in context: 
http://subversion.1072662.n5.nabble.com/Want-to-create-Integration-Report-From-2-diff-SVN-URL-tp177768p178093.html
Sent from the SVNKit - Users mailing list archive at Nabble.com.

Reply via email to