[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Svn Commit and unlock notifications

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Tue, 04 Sep 2012 10:31:15 +0100

Markus Schaber <m.schaber_at_3s-software.com> writes:

> My current workaround is that my code memorizes all the pathes where a
> svn_wc_notify_commit_XXX notifications occurs, and after the commit
> operation has finished successfully, it assumes all those pathes have
> been unlocked.
>
> Can someone confirm that this will catch all unlockings? Or do I need
> to I re-check using svn_client_status5 to avoid false positives?

Unlocking happens as a separate operation on the server after the commit
which means it is possible for unlocking to fail after the commit itself
has succeeded. Whether the client finds out about the failure depends
on the server implementation. Both mod_dav_svn and svnserve hide the
error from the client see:

   mod_dav_svn/version.c:release_locks
   svnserve/serve.c:unlock_paths

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2012-09-04 11:31:53 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.