tfvc

Convert Git repository to TFVC version control

前提是你 提交于 2019-12-02 13:22:00
I have a local git repository and i would like to convert it to TFVC version control and then load it to TFS server. Does anyone have an idea how to do it ? To migrate Git repo to TFVC repo, you need to install git-tf tool at first. And also make sure you have added a TFVC repo before migration. And assume the TFVC repo name is projectname . After installing git-tf successful, then use below commands to checkin the files and histories in TFS TFVC repo: cd /payh/to/local/git/repo git tf configure http://tfs-server:8080/tfs/DefaultCollection "$\projectname" git-tf checkin --deep --autosquash Now

Move TFVC code from one collection to another including history

拥有回忆 提交于 2019-12-02 11:25:47
I need to move some code from TFVC in one project collection to a project in another collection. I also need to retain the check-in history, I'm not worried about the changeset ids but do want to retain the comment / who and when in the history along with the changes made. The project being moved to will be empty. This will be using on premise TFS2017 Update 3. (In preparation to migrating the collection to VSTS) Any suggestions on how to do this please? There is a request for this feature in queue for long time but MSFT has not started implementing it yet, according to the request here . I

Getting TF205022: The following path contains more than the allowed 259 characters in Xcode and TFS

▼魔方 西西 提交于 2019-12-01 18:02:30
问题 As suggested by https://www.visualstudio.com/en-us/docs/tfvc/share-your-code-in-tfvc-xcode I am putting my existing code to TFVC using git-tf. But my paths are deep. During check-in I am getting, git-tf: TF205022: The following path contains more than the allowed 259 characters: /Users/VeryLongPath 回答1: Even though the path length limitation is really annoying, the most effective and easy way still is spending some time tweaking your file/folder structure to make this work. For example:

Azure continuous deployment for multiple projects

纵饮孤独 提交于 2019-12-01 18:00:20
I have created an Azure Web Site and connected it to Visual Studio Online, and this automatically set up a continuous deployment build (as per this page ). Initially this worked for a solution with one project, but now I have added a Web API project as a back end. This is named such that it is the first of the two projects alphabetically , and so now it is the only project that gets built and deployed whenever files are checked in. Which leads to my question: How can I modify the default continuous deployment build to deploy both applications? I'm sure it must be a fairly simple change to

Why is TFS Rest API for fetching the TFVC changesets returning only 256 items?

穿精又带淫゛_ 提交于 2019-12-01 05:54:59
问题 Why is the TFS Rest API for fetching the TFVC changesets returning only 256 items. I tried using the $Top to get more than 256 results. But no use. The API for getting Git repository commits is working fine. I am referring to https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/changesets Sample request https://tfs.domain.com/tfs/defaultcollection/projectname/_apis/tfvc/changesets?$searchCriteria.fromDate=2016-07-12T17:49:01&$skip=0&$top=500 I tried without $skip and $searchcriteria

Merging Development Branch to Main: There were no changes to merge

泄露秘密 提交于 2019-12-01 02:32:15
My main branch has some files that have different codes from the same file of development branch. The development branch is the one that has the correct version of these files but when I am trying to merge it to main branch(target); I am getting a message saying There was no changes to merge How can I resolve that problem so that the main branch has the correct version of those files? jessehouwing When merging files TFS doesn't just look at the differences between the two branches, but it also keeps track of whether you've ignored these changes in a previous merge attempt. When merging TFS

What are “Excluded Changes” in Team Foundation Server?

≡放荡痞女 提交于 2019-11-30 22:04:47
问题 When I check in changes in TFS Express 2013 using Visual Studio 2013 Professional, there is a list of "Excluded Changes" that has 1541 items in it. I have never told TFS to exclude a change, and do not understand why anyone would even want to "exclude" a change (isn't source control all about SAVING changes???). I am a bit worried that I have changes that are not being saved...but am even unsure if this is even what it means. I have Googled for more information about "Excluded Changes" in TFS

VSTS build from multiple repositories

青春壹個敷衍的年華 提交于 2019-11-30 17:57:55
I have two repositories - one in TFVC and another in Git. There are specific technical reasons for keeping them separate. The code in TFVC is built on a private build agent and the code in Git is built on a hosted agent. So currently I have two independent builds and the outcomes of them are deployed together in a release definition. I am looking at creating builds that may be able to get the source from both the repositories so that I have a single build definition to manage. Is there a way to achieve this? Marina Liu For now, there is no way to specify multiple repositories in Get sources

TFS Client side hook

烈酒焚心 提交于 2019-11-30 13:31:19
问题 We have using TFS as version control. Currently the project management is done through our local PMS application. We have a requirement like when a team member check in the project, show a custom dialog for entering task details and update our local pms database. I want to show a custom dialog box that and/or after the check-in command is invoked. Also ensure that only successful submission of task details through this custom dialog boxes, we can checkin the projects. 回答1: Creating your own

TFS Client side hook

偶尔善良 提交于 2019-11-30 07:39:13
We have using TFS as version control. Currently the project management is done through our local PMS application. We have a requirement like when a team member check in the project, show a custom dialog for entering task details and update our local pms database. I want to show a custom dialog box that and/or after the check-in command is invoked. Also ensure that only successful submission of task details through this custom dialog boxes, we can checkin the projects. jessehouwing Creating your own checkin policy You can do this through a Check-in policy. Check out my blog post on interacting