Migrating items on Google code to the local repository

Source: Internet
Author: User

since May this year has not been connected to Google Code, the wall is extremely unstable, after enduring a few months finally decided to move the project away from Google Code, after the study finally realized the relocation to the local, and finally summarized into the following. Accesses than either expect a little help from those who need it. , and they are recorded for inspection.

First, create a local version of the warehouse

    • Open the local repository directory you want to create eg:D:\WinPath\desktop\11
    • Right-click "TortoiseSVN", "Create repository Here", "OK"
    • Note Do not select "Create Default Structure", which will cause the import to fail

Second, modify the script "Pre-revprop-change.tmpl"

    • Local repository Directory "hooks" directory, this example path is "D:\WinPath\desktop\11\hooks"
    • Modify the last line of "Pre-revprop-change.tmpl" to: "Exit 0"
    • As shown in the following:

third, continue to create the "pre-revprop-change.bat" file

    • Create a "pre-revprop-change.bat" file under the current directory ("hooks")
    • File contents:
      1 echo "changing revision properties other than Svn:log is prohibited" >&2
      2 exit 0
    • As shown in the following:

Four, run the command line

    • Initialize Svnsync init file:///d:\winpath\desktop\11\ https://yourproject.googlecode.com/svn
    • Sync svnsync sync file:///d:\winpath\desktop\11\

Wu, relocate

    • Relocate the original project to the new file:///d:\winpath\desktop\11\ .

Vi. Attention

      • You can also use the local SVN server instead of the local repository and replace the local library directory path directly with the local SVN server path (eg:https://hostname:8443/svn/test1 ) (file:///d:\ Winpath\desktop\11\ ) on it.

Migrating items on Google code to the local repository

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.