Alexander Kitaev wrote:
> I'd suggest you to use another instance of SVNRepository and call
> checkPath for each file prior to commit - this way you'll get the
> information on whether file or directory already exist in repository.
> Then, call editor.addFile/Dir for new files and editor.openFile/Dir
> for existing files. Or report an error if you wouldn't like to commit
> a file if it is already there.
Ok, that's what I did right now as but was not sure as I felt it was a
bit awkward and thought I was missing something obvious but the
non-reentrant lock on the repository once you have started a commit
editor did not give me much choice.
>
> Using checkPath will also make your code work over all protocols, not
> only over DAV.
yes of course, sorry, when I said DAVCommitEditor, I meant just in term
of using similar logic and having to keep a stack of the context, etc...
cheers, thanks for the reply.
-- stephane
---------------------------------------------------------------------
To unsubscribe, e-mail:
svnkit-users-unsubscribe@...
For additional commands, e-mail:
svnkit-users-help@...