You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Spike Cacti <sp...@yahoo.com> on 2006/07/26 14:51:51 UTC

Question about hooks (mirroring/svnreplicate)

I am trying to fix svnreplicate from : 

https://open.datacore.ch/DCwiki.open/Wiki.jsp?page=SVNreplicate

I have added lots of locks/logs/etc... Everything look fine except for this little problem : The script is not notified of problems (like a commit on an non-updated file, or anything that causes an interuption after the start-commit hook (which locks the master server in my setup). This leaves the master server in a locked state and has to be manually removed. 

I am looking for a way to trap errors (I say that most are logged to apache and wrote a little something to trap the errors in the log file). The only error I haven't found out how to get is when someone "cancels" a commit. 

So I need a way to either catch these errors or to make tests to know if there is any activity on a repository. Is there a way to know if there is activity on a repo ? 

Im open to suggestions and will publish the resulting scripts to the lsit if it ends up working :-) My goal was to create something that could mirror SVN reposotories and accept commits both on any server. 

Or maybe is there a better solution ? Documentation on SVK to create a mirror is far from excellent. It's more a discussion between 2 guys...:-(

Spike

 		
---------------------------------
Do you Yahoo!?
 Everyone is raving about the  all-new Yahoo! Mail Beta.