You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by allen gordon <a....@cablelabs.com> on 2009/04/01 21:45:41 UTC

problem creating a mirror

I am attempting to mirror an existing repo.  I've created a local repo with 'svnadmin create /var/svn/svn-mirror'.  I have copied the hooks/*.tmpl files to .sh files and made them executable.  But when I run 'svnsync initialize file:////var/svn/svn-mirror https://{remote repo} --source-username {username} --source-password {password}' I get:

svnsync:  Repository has not been enabled to accept a revision propchanges;  ask the admin to create a pre-revprop-change hook.

This script exists and is executable, but it seems that svnsync is not able to find it, since it doesn't matter if its in the hooks directory or not.  I have R/W access to both the local and the remote subversion repos.  

Please help.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1511032

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].

Re: problem creating a mirror

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Apr 1, 2009, at 16:45, allen gordon wrote:

> I am attempting to mirror an existing repo.  I've created a local  
> repo with 'svnadmin create /var/svn/svn-mirror'.  I have copied the  
> hooks/*.tmpl files to .sh files and made them executable.  But when  
> I run 'svnsync initialize file:////var/svn/svn-mirror https:// 
> {remote repo} --source-username {username} --source-password  
> {password}' I get:
>
> svnsync:  Repository has not been enabled to accept a revision  
> propchanges;  ask the admin to create a pre-revprop-change hook.
>
> This script exists and is executable, but it seems that svnsync is  
> not able to find it, since it doesn't matter if its in the hooks  
> directory or not.  I have R/W access to both the local and the  
> remote subversion repos.

The .tmpl files in the hooks directory are just templates --  
examples. You must rename them to not have the .tmpl extension if you  
want to enable them. Subversion will not look for the files with  
the .tmpl extension, the .sh extension, or any other extension. You  
may also have to rewrite the scripts to meet your needs.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=1527884

To unsubscribe from this discussion, e-mail: [users-unsubscribe@subversion.tigris.org].