[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: API accessing property diff of svn:mergeinfo

From: Bernhard Haumacher <haui_at_haumacher.de>
Date: Wed, 06 May 2015 14:20:58 +0200

Hi Branko,

> On 06.05.2015 08:24, Bernhard Haumacher wrote:
> >
> > ... I'd
> > like to analyze the diff of the svn:mergeinfo property (what other
> > revisions were merged into some branch in a commit). ...
> >
>
> ISVNClient.getMergeinfoLog should give you that information.
>
> The upcoming 1.9 release will have http://s.apache.org/pVj which allows
> you to limit the revision range.
>

I tried out your suggestion, but it seems that it cannot be used for my
purpose: I'm not interested in the merged revisions limited to those
revisions that were merged from a specific merge source (for using the
getMergeinfoLog() API, I do not have the `mergeSourceUrl` info):

{{{
getMergeinfoLog(Mergeinfo.LogKind kind, String pathOrUrl,
                          Revision pegRevision, String mergeSourceUrl,
                          Revision srcPegRevision,
                          Revision srcStartRevision, Revision
srcEndRevision,
                          boolean discoverChangedPaths,
                          Depth depth, Set<String> revProps,
                          LogMessageCallback callback)
}}}

What I'm interested in is the combination of all merge sources plus
merged revisions that were merged within a single commit. At the command
line, this information can be retrieved with

{{{
svn diff --depth empty -c<rev> <url of branch>
}}}

resulting in e.g.:

{{{
Eigenschaftsänderungen: .
___________________________________________________________________
Modified: svn:mergeinfo
    Zusammengeführt /trunk:r161790
    Zusammengeführt /branches/x:r160492
    Zusammengeführt /branches/y:r185821
}}}

Unfortunately, I cannot access this information using javahl in a
structured way?!

Best regards
Bernhard Haumacher
Received on 2015-05-06 14:23:41 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.