Hello Daniel,
I don't understand your question fully but as I understand you have some path 
and revision and you 
want to understand if the path was copied from another path or not.

SVNFileRevision is mostly useless object, everything you can do with it is to 
extract path and 
revision.
Then you can call 'log' (see SvnOperationFactory#createLog) operation on that 
(path,revision) pair 
to get SVNLogEntry object(s). This will give you a history including all 
copy-sources of the 
(path,revision).

Depending on if you want to understand if (path,revision) was copied *exactly*  
at that revision or 
at some anotherRevision <= revision, you should analyze only the last or all 
SVNLogEntry objects.
Depending on if you want to find copies of the file only or copying of the file 
together with some 
directory are also ok for you, you should analyze all SVNLogEntryPath objects 
in the SVNLogEntry 
object(s).

That's not a piece of cake, but I know no shorter way to do that.
--
Dmitry Pavlenko,
TMate Software,
http://subgit.com/ - git-svn bridge

> Hello,
> 
> I have a  SVNFileRevision and I would like to know if it is a
> *copy_revision* (e.g. it was branched from some original revision).
> 
> I know that in the SVNLogEntryPath object,  we have a getCopyPath() [1]
> method in case when it is a copy, but how to do this with a SVNFileRevision
> object?
> 
> Should I try to get the SVNLogEntry for the SVNFileRevision and then
> recover the SVNLogEntryPath? It seems like a long way to do this,
> 
> Any ideas?
> 
> ​Thanks,​
> 
> 
> ​[1]
> http://svnkit.com/javadoc/index.html?org/tmatesoft/svn/core/SVNLogEntryPath
> .html ​

Reply via email to