名称

svnsync initialize — 为与另一个版本库的同步初而始化目标版本库。

概要

svnsync initialize DEST_URL SOURCE_URL

描述

svnsync initialize verifies that a repository meets the requirements of a new mirror repository—that it has no previous existing version history and that it allows revision property modifications—and records the initial administrative information that associates the mirror repository with the source repository. This is the first svnsync operation you run on a would-be mirror repository.

Alternate Name

init

选项

--non-interactive
--no-auth-cache
--username NAME
--password PASS
--config-dir DIR

例子

因为无法修改修订版本属性而初始化镜像版本库失败:

$ svnsync initialize file:///var/svn/repos-mirror http://svn.example.com/repos
svnsync: Repository has not been enabled to accept revision propchanges;
ask the administrator to create a pre-revprop-change hook
$

Initialize a repository as a mirror, having already created a pre-revprop-change hook that permits all revision property changes:

$ svnsync initialize file:///var/svn/repos-mirror http://svn.example.com/repos
Copied properties for revision 0.
$