Hello, I didn't yet check the behavior you report, but please make sure that path format you use is consistent, in particular:
1) path that starts with '/' is always relative to the root of repository. 2) path that doesn't start with '/' is relative to the SVNRepoistory object location. E.g. if you have repository at http://host/svn/repos and location in it like: http://host/svn/repos/p1/trunk/d1, then when you create SVNRepository for location http://host/svn/repos/p1, then you may use either: 1) '/p1/trunk/d1' or 2) 'trunk/d1' path Second way (relative to location) is preferable one. Alexander Kitaev, TMate Software, http://svnkit.com/ - Java [Sub]Versioning Library! http://hg4j.com/ - Java Mercurial Library! http://sqljet.com/ - Java SQLite Library! On 3 October 2011 03:35, vligu <[email protected]> wrote: > > Here is a problem I have using Subversion and SVNKit. I have a folder at > http://svn.example.com/dirA/dirB/myproject which contains all my source > files of a project. To get the currently project tree (which means all > paths) I use SVNRepository.status(), and in ISVNEditor I record all paths > (addDir(), addFile(), openDir(), openFile()). Once I got the project tree > than I download all logs for each path (dir or file). All paths are: > /myproject/path1/file1, /myproject/path2/file2 and so on. I call > SVNRepository for all this paths to get all logs. All returned logs have > their changed paths (SVNLogEntryPath) like: /dirA/dirB/myproject/path1/file1 > and so on. Now, for each path in repository tree I previously downloaded > with status() I want to get all file revisions by calling: > SVNRepository.getFileRevisions(). The problem is: > 1) I cant pas a path that I previously donwloaded with status(), it says not > a correct location. > 2) The strange thing is: when I want to download logs for a specific path I > must specify that path as: myproject/../.., and when I want to download > revisions for the same path I must specify it as: dirA/dirB/myproject/../... > I don't know this is the default behaviour or not, but this is very strange > to me. Any suggestions? > > Thank you in advance, Elvis. > -- > View this message in context: > http://old.nabble.com/SVN-Bug-or-SVNKit-bug%2C-or-default-behaviour----tp32579807p32579807.html > Sent from the SVNKit - Users mailing list archive at Nabble.com. > > >
