tfvc
Version 2.1 by Rudi Marais on 2022/02/02 13:46
We will migrate all the tfvc repos into one git repository called "migration" as a staging area to facilitate the process of moving the individual solutions into its final git location. This can be done in a delta fasion until we restrict the tfvc repos and everyone starts working off the git staging repo.
Feature branches can be merged back into master via a pull request and the feature branches that are not applicable anymore can be abandoned.
The process to sync the tfvc to the git repo
- pull all the latest changes from TFVC via cli
- tf vc workspace /new migration /collection:https://dev.azure.com/ebsphere
mkdir c:\dev\src\migration
cd c:\dev\src\migration
tf vc get
- do an extract and dump into excel to generate the copy commands
forfiles /P C:\dev\src\migration /S /C "cmd /c echo @isdir;@ext;@path" >>list3.txt - execute copy commands from excel generation
- this will split the source into master and feature brances
- this will split the source into master and feature brances
- run the tf-sync.ps1 script
- this will parse the directories that was created into the migration repository
- see mappings for structure
- this will create or update the migration repository
- this will parse the directories that was created into the migration repository