如何同步化本地svn库到googlecode

    技术2024-07-26  20

    同步化本地svn库到googlecode的步骤:

    首先在Googlecode上应当有一个已经建好的工程,然后在source/checkout目录下选择“reset this repositor”。注意,这样做会删除当前版本库(googlecode)中所有历史记录,且此操作不可逆,所以要想清楚了本地也应当有一个版本库(用于同步到远程),建立同步: svnsync init --sync-username <username> --sync-password <password> dest_url src_repos_path 成功后会收到如下信息: Copied properties for revision 0 执行同步: svnsync sync --sync-username <username> --sync-password <password> dest_url 执行成功后会显示: Committed revision 1. Copied properties for revision 1. Committed revision 2. Copied properties for revision 2. Committed revision 3. Copied properties for revision 3. ...  当发生意外导致svnsync非法终止,其会锁住repos导致无法继续同步,这是可以手动解锁: svn pdel --revprop -r 0 svn:sync-lock dest_url
    最新回复(0)