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!