tfvc

Create TFS Source Branch using Visual Studio Online / TFS 2015 Api

眉间皱痕 提交于 2019-12-10 19:48:38
问题 Does anyone know how to create a branch using the VSO Api. The documentation for Branches doesn't include a "create". I have been experimenting with doing it via the ChangeSet Api without much success. This is TFVC, not Git. 回答1: Just as what you see in "Branches" page, there isn't any way to create branch with the Rest API. And mostly, you can only read/get the information with the Version Control API for now. I would recommend you to use Client Object Model Reference if you want to manage

Should the username and timestamp be migrated for changesets?

故事扮演 提交于 2019-12-10 18:35:04
问题 The following text on the OpsHub Migration Utility page indicates that the username and timestamp will be embedded in the comments of the migrated changeset. Metadata information about the source Change set like original username, original check-in timestamp are embedded in Change set comments during migration for Change sets. https://visualstudiogallery.msdn.microsoft.com/28a90a17-d00c-4660-b7ae-42d58315ccf2 Why am I not seeing this metadata embedded in the changeset comments? 回答1: That

What is the equivalent in TFVC of git cherry-pick

时光怂恿深爱的人放手 提交于 2019-12-10 13:55:56
问题 I'm sorry for my question but I'm TFS noob user, what is the equivalent in TFVC (Team Foundation Version Control) of git cherry-pick? 回答1: First, create a patch for the changeset that you want to cherry-pick: tf diff /version:C1234 /format:unified > cherry.patch (Note: be careful about redirecting to a file from PowerShell. It wants to write UTF-16 files which many programs have a hard time coping with.) Then apply the patch using patch: patch -p0 < cherry.patch 回答2: There is one solution

How to append a git repository on top of another

感情迁移 提交于 2019-12-08 12:48:02
问题 I am in the process of converting a project from TFS to git, and I want to keep all history. The problem is that the TFS project was moved in TFS one year ago. Using git-tfs I can convert both locations to git, but now I have two git repositories: A and B. I have managed to get both A and B into the same repository as different branches. Would it be possible to change the parent of first commit in B to the last commit in A? Branch A: a -> b -> c Branch B: d -> e -> f I want to have a -> b ->

Registering custom checkin policy for Certain users in TFS

情到浓时终转凉″ 提交于 2019-12-08 04:20:32
I have created custom checkin policy for TFS. It is deployed to the client system. I have added the custom checkin policy for project collection in TFS. But I have a number of clients that have not installed the custom checkin policy, when these developers want to check in, Visual Studio shows an error Internal error in Check for PMS Details. Error loading the Check for PMS Details ... So I want to apply the custom checkin policy for certain users. For example the user is admin then no need to run the custom checkin policy. As others mention, the policy needs to be installed on the Client

tf.exe info /version:T does not get latest

和自甴很熟 提交于 2019-12-08 03:08:09
问题 I am using tf.exe to get the latest information of a path but tf.exe info $/Path /version:T only gives me the very first info. But I need the latest ones obviously. Using VS2013 and the build-in history I can see the latest. What could be the problem? 回答1: You're requesting the info for the root directory. Normally such folders are only created once and as such will only have one history element. When you look at the history list in Visual studio, you're looking at the recursive history (of

TFS 2010: Gated Check-In On Main Branch; Rolling Builds on Dev Branch?

人走茶凉 提交于 2019-12-06 05:59:30
I recently migrated from VSS to TFS 2010 and I've been absolutely loving it, but there's something I haven't yet been able to get working the way I think it should. GOALS I'd like to quickly know when a change to Development breaks a build. If we find out after-the-fact, it's no big deal. Since a lot of check-ins happen throughout the day, we don't want to wait on the build to finish, so it should be asynchronous. With our Main branch, I'd like to ensure that any time a merge happens into it, we make sure it's not going to break the build. I want immediate feedback on this. The wait time is

Setting up TFVC repo in Visual Studio Code for Mac

柔情痞子 提交于 2019-12-06 04:50:00
I am trying to to set up a Team Foundation Version Control (TFVC) repository hosted in VSTS on my Visual Studio Code for Mac. I haven't used Visual Studio at all. Apparently, my client is using TFVC system as their main approach for repo management. However, I tried downloading the source as a Zip from the VSTS web site but Visual Studio Code for Mac (with the VSTS extension configured) did not identify that folder is a VSTS repo (Showing the "team" icon). Tutorial I followed to configure - https://github.com/Microsoft/vsts-vscode/blob/master/TFVC_README.md#quick-start May I know what I am not

Checkins to TFVC Team Projects trigger builds in Git Team Project

一个人想着一个人 提交于 2019-12-05 17:45:35
I have a TFS project set up for continuous integration. My problem is that checkins on other TFS projects are triggering builds of my project even when no change has been made to my project. It seems to be related to my project being a Team Foundation Git repository, and none of the other projects are. Where can I look to find out what's triggering this build? Edit: To be more clear, what I mean is that I have entirely separate Team Projects. All of them but one use Team Foundation Version Control except one which uses Git. Somehow, checkins on the TFVC Team Projects trigger a build on the Git

Symbolic links in TFS 2010 Source Control?

好久不见. 提交于 2019-12-05 13:18:31
问题 As far as I know, Team Foundation Server 2010's source control (and prior versions) doesn't support linking (Symbolic links) of files. Linking (per Visual SourceSafe) was the concept of providing one "hard" file in a folder, and then "linking" to it in other locations - exactly like file system hard links are designed. Does anyone know if files can be linked at all? I realise it is not a good practice in general, but I have some scenarios where it makes sense. According to an answer in this