Hello,
I can't reproduce the problem. For me this code receives commitMessage for all
protocols including DAV.
long revision = 1;
final SVNRepository svnRepository =
SVNRepositoryFactory.create(url);
try {
final SVNDirEntry entry =
svnRepository.getDir("path/to/directory", revision, true, null);
final String commitMessage = entry.getCommitMessage();
} finally {
svnRepository.closeSession();
}
If the code throws NullPointerException, could you please send the code you run
and stacktrace of the exception.
Note: don't rely on entry.getName(): for this method it will be empty whatever
arguments are.
Didn't you forget to initialize DAV protocol support in SVNKit by calling
DAVRepositoryFactory,setup() before all?
--
Dmitry Pavlenko,
TMate Software,
http://subgit.com/ - git-svn bridge
> Hi all:
> How to include commit messages in http
> repository(daverepositoryfactory.create(svnurl)) I used
> repository.getDir(path, revision, properties, dirEntries) but I am not
> getting commit messages in this so tried using repository.getDir(path,
> revision, includeCommitMessages, entries). But if I call this method and
> access entries it throws null pointer exception. And if I print
> entries.getname() it prints null please help me with this. Regards
> G, Pramod