Hello,

This method relies on svn:mergeinfo property set on a branches and
should provide same list of revisions that you may get with the native
Subversion command:

svn mergeinfo --show-revs eligible SOURCE_URL TARGET_URL

You may read more on what to expect from this command in Subversion
book at 
http://svnbook.red-bean.com/en/1.7/svn.branchmerge.basicmerging.html#svn.branchmerge.basicmerging.mergeinfo

Alexander Kitaev,
TMate Software,
http://subgit.com/ - Svn to Git Migration!
http://svnkit.com/ - Java [Sub]Versioning Library!
http://hg4j.com/ - Java Mercurial Library!
http://sqljet.com/ - Java SQLite Library!


On 6 February 2013 22:13, souachar <cse.sou...@gmail.com> wrote:
> 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