I don't know what SVNKit's functionality is for sure but I
believe in
the case of the SVN client what happens if two people try to
commit is
that one commits and the other gets knocked out because your
repository
has to be "up to date" before you can commit.
The documentation isn't very clear, but if I had to guess I
would guess
that everything would go as planned until you tried to call
closeEdit,
then it would throw an exception and cancel the whole
transaction (as if
abortEdit was called). I guess this because that is the
closest to how
I've observed the real client to behave.
Alex Kitaev probably could respond with absolute certainty,
but you
might be able to test this yourself by running two SVN
commit actions.
You could use the commit example already given, but then
rather than
calling closeEdit, open up a new connection and do a commit
there, then
go back to the original code and call closeEdit and see what
happens.
Jason
-----Original Message-----
From: kiss informatik.uni-freiburg.de
[mailto:kiss informatik.uni-freiburg.de]
Sent: Thursday, April 19, 2007 2:28 PM
To: svnkit-users svnkit.com
Subject: Atomicity of SVNRepository's methods /
SVNCommitEditor
Hi,
I wonder if the methods of SVNRepository (like .checkout an
.update) are
atomic: Is it possible (not probable) that another SVN
client commit
changes just while (not before or after) I am checking out
or updating
through these methods ?
I am also concerned about the use of the SVNCommitEditor
object:
In case of heavy editing through calls of the editor's
methods it is
possible, that another SVN client took a commit meanwhile.
Does this
cause
trouble for the editor itself? I think a final (and atomic)
commit is
done
by the editor through the call of its .closeEdit() method,
not during
the
editing, or isn't it? To which revision does this refer, the
HEAD
revision
at initialization of the editor or the HEAD revision at the
.closeEdit()
call?
Fabian Kiss
------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribe svnkit.com
For additional commands, e-mail: svnkit-users-help svnkit.com
------------------------------------------------------------
---------
To unsubscribe, e-mail: svnkit-users-unsubscribe svnkit.com
For additional commands, e-mail: svnkit-users-help svnkit.com
|