Hello, > I'm having some troubles while syncing two svn servers. > > The first problem I had was solved by moving the syncscript from > 'post-commit hook' to 'post-revision property change hook'. The problem was > that the files were synced with incorrect dates.
Do you mean that you've moved the script which triggers `svnsync` from post-commit to post-revision-property-change hook? Could you please describe the incorrect dates issue in more details? By incorrect dates, do you mean timestamps in the target repository or something else? > Now I am facing another problem, about 70% of the revisions are synced with > a wrong author (svnsyncuser instead of the author). > > I'm using following command in the hook: svnsync --non-interactive > --username svnsyncuser --password password sync > https://wcontent02.domain/svn/live/ https://wcontent01.domain/svn/live/ > --steal-lock * Why do you set "--steal-lock" in the hook script? In most cases it's not required to be in the hook[1]. According to SVNBook: [[ This option should only be used when a lock exists in the mirror repository and is known to be stale—that is, when you are certain that there are no other svnsync processes accessing that repository. ]] * "--username" is a deprecated argument for `svnsync`[2]. It could be the cause why the synchronization has incorrect "svn:author" values. You should use other arguments to provide source and target username and password: [[ --source-password PASSWD --source-username NAME --sync-password PASSWD --sync-username NAME ]] Does the behavior change if you remove "--username" and use use "--source-" and "--sync-" ones? [1]: http://www.visualsvn.com/support/svnbook/ref/svnsync/#svn.ref.svnsync.sw.steal_lock [2]: http://www.visualsvn.com/support/svnbook/ref/svnsync/#svn.ref.svnsync.sw.source_password -- With best regards, Pavel Lyalyakin VisualSVN Team -- You received this message because you are subscribed to the Google Groups "VisualSVN" group. To unsubscribe from this group and stop receiving emails from it, send an email to visualsvn+unsubscr...@googlegroups.com. To post to this group, send email to visualsvn@googlegroups.com. Visit this group at http://groups.google.com/group/visualsvn. For more options, visit https://groups.google.com/groups/opt_out.