SVN and TFs automatic synchronization script (very practical)

Source: Internet
Author: User

I have been reading articles in the garden, so I am too lazy to write articles for various reasons. I have been idle recently. I will share my work achievements over the past few days.

Due to work requirements, developers use QT for system mobile development. QT version control does not provide settings for connecting to TFs. Only SVN is used. There is no way. Only install SVN. Now you can understand it. Finally, you can find that the svn server will automatically synchronize to the TFS server after the svn hooks can be implemented and submitted. The post-commit script is as follows:

Et workdir = D: \ xxxxset svndir = c: \ Program Files \ visualsvn Server \ binset svnexportdir = D: \ SCM \ slpt \ trunk \ sourcerem to SVN installation directory CD/d c: cd % svndir % del D: \ SCM \ slpt \ trunk \ source/S/qrd d: \ SCM \ slpt \ trunk \ source/S/qsvn export -- force http: // localhost: 8082/SVN/slpt/D: \ SCM \ slpt \ trunk \ source -- username -- Password CD/d: cd % workdir % TF workspaces/owner: TFs-Server \ Administrator/computer: TFS-server/Collection: http: // TFs server address TF get $/project name/Development Library/08. source code/source/slptmobile/travelplatformmobile/All/overwrite/force/noprompt/recursive/login: User Name, password del D: \ 11 \ Project name \ Development Library \ 08. source code \ source \ slptmobile \ travelplatformmobile \/S/q rd d: \ 11 \ Project name \ Development Library \ 08. source code \ source \ slptmobile \ travelplatformmobile \/S/qmkdir travelplatformmobilexcopy D: \ SCM \ slpt \ trunk \ source \ trunk \ travelplatformmobile D: \ 11 \ Project name \ Development Library \ 08. source code \ source \ slptmobile \ travelplatformmobile/e/R/y/Srem to the workspace CD/d: cd % workdir % tfpt online D: \ 11 \ Project name \ development database \ 08. source code \ source \ slptmobile \ travelplatformmobile/deletes/diff/Adds/recursive/noprompt/login: User Name, password TF resolve/auto: keepyours/recursive/noprompt/login: User Name, password: TF checkin $/project name/development database/08. source code/source/slptmobile/travelplatformmobile/recursive/comment: "automatically synchronize SVN to the TFS configuration library"/login: User Name, password

The new version has not been optimized yet. If you need it, you can learn it by yourself based on the script. It is more helpful. If you have any questions, please leave a message!

Related Article

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.