tf-cli

Using TF.exe with Team Foundation Service?

ε祈祈猫儿з 提交于 2019-12-06 02:03:45
We're moving our build from Team Build (Team Foundation Service) to a local build machine using Jenkins CI for build. However, we still want to use the Cloud for Source Control. So now we need to access the cloud TFS to get the latest build. Jenkins has an TFS Plugin, but that was made for TFS 2008. Now I have the problem that I'm not able to access the cloud TFS with TF.exe from VS2012. I found an article here that showed me the difference between TFS 2008 and 2010 (I need to add /tfs/DefaultCollection to the server URL), but that didn't work with the cloud TFS. Here's the error: TF31002:

Given a TFS changeset, how can I find what work item(s) it is linked to?

倾然丶 夕夏残阳落幕 提交于 2019-12-04 17:25:28
It's easy to see what changesets are linked to a given work item. But is it possible, given a changeset, to find out what work item(s) it is linked to? If you have the changeset number then in TFS explorer in VS press CRTL + G and provide the changeset number and click OK. That will bring the change set in team explorer. Then you can click on a folder/file and select view history which will show you the work items related to it. See view changesets for more information. Also, check out this MSDN blog post Listing the work items associated with changesets for a path (From my Visual Studio 2017)

Find all locked files in TFS

蓝咒 提交于 2019-12-03 08:39:55
问题 I would like to see all files that are locked. so far, I've only found to use tf.exe status and look for anything with '!' because they are not reported as "lock, edit" as they are in the UI. Any ideas? thanks. 回答1: If you have the power tools installed, it's a one-liner: tfstatus . -r -user * | % { $_.pendingchanges } | ? { $_.islock } | select -unique serveritem If you prefer GUIs to scripts, try TFS Sidekicks. 回答2: If you are trying to use TFS Sidekicks, and can't figure out how, it is

Explaining tf diff

百般思念 提交于 2019-12-03 07:46:18
问题 Using Visual Studio 2008 tools, I am trying to get an ASCII diff of change sets 14318 and 14317. I can do so using GUI: tf changeset 14318 and then select a file and right-click and select compare with previous version. However, this is a bit tedious and it is GUI-based. My task at hand is to back-port many changes into a different branch. I would like to automate the testing (say using Python), making sure that I did it correctly. Well, for educational purposes I will make all changes by

Find all locked files in TFS

假装没事ソ 提交于 2019-12-02 22:32:33
I would like to see all files that are locked. so far, I've only found to use tf.exe status and look for anything with '!' because they are not reported as "lock, edit" as they are in the UI. Any ideas? thanks. If you have the power tools installed, it's a one-liner: tfstatus . -r -user * | % { $_.pendingchanges } | ? { $_.islock } | select -unique serveritem If you prefer GUIs to scripts, try TFS Sidekicks . If you are trying to use TFS Sidekicks, and can't figure out how, it is under Tools, Team Foundation Sidekicks, Status Sidekick. You will need to expand that window, but you will then be

Explaining tf diff

三世轮回 提交于 2019-12-02 21:14:09
Using Visual Studio 2008 tools, I am trying to get an ASCII diff of change sets 14318 and 14317. I can do so using GUI: tf changeset 14318 and then select a file and right-click and select compare with previous version. However, this is a bit tedious and it is GUI-based. My task at hand is to back-port many changes into a different branch. I would like to automate the testing (say using Python), making sure that I did it correctly. Well, for educational purposes I will make all changes by hand without looking at the solution, and then I will compare the two changes and try to look for any

How to update TFS workspace after computer name changes?

别等时光非礼了梦想. 提交于 2019-12-02 17:15:52
I renamed my computer name, and now my TFS workspace is broken in Visual Studio 2012. When I type: tf workspaces /computer:ABOTONJIC-PC /owner:* /format:detailed Workspace : ABOTONJIC-PC Owner : wrongowner@test.com Computer : ABOTONJIC-PC Comment : Collection : netuse.visualstudio.com\DefaultCollection Permissions: Private Location : Local File Time : Current But I need to have : Owner : realowner@test.com Computer : NEW-PC Then I try: tf workspaces /updateComputerName:ABOTONJIC-PC /collection:netuse.visualstudio.com/DefaultCollection No workspace matching *;wrongowner@test.com on computer NEW

What does the command tf vc scorch do?

给你一囗甜甜゛ 提交于 2019-11-28 12:26:42
问题 In the build logs of TFS builds I have seen the use of the command tf vc scorch . This looks rather interesting and seems to be something like git clean and could be quite helpful but for some strange reason scorch is not documented. Is this some internal thing that is not intended for public use? Typing tf vc /? does not list the scorch command and tf vs scorch /? does not explain the parameters. It is also not listed on docs.microsoft.com. Where can I find its full documentation? 回答1:

How to get tf.exe (TFS command line client)?

早过忘川 提交于 2019-11-27 11:31:18
What's the minimum amount of software I need to install to get the 'tf.exe' program? James Reed You need to install Team Explorer , it's best to install the version of Team Explorer that matches the version of TFS you are using e.g. if you're using TFS 2010 then install Team Explorer 2010. 2012 version http://www.microsoft.com/en-gb/download/details.aspx?id=30656 2013 version http://www.microsoft.com/en-us/download/details.aspx?id=40776 You also might be interested in the TFS power tools . They add some extra command line features (using tfpt.exe ) and also add some extra IDE features. I'm in

How to get tf.exe (TFS command line client)?

a 夏天 提交于 2019-11-26 15:36:35
问题 What's the minimum amount of software I need to install to get the 'tf.exe' program? 回答1: You need to install Team Explorer, it's best to install the version of Team Explorer that matches the version of TFS you are using e.g. if you're using TFS 2010 then install Team Explorer 2010. 2012 version http://www.microsoft.com/en-gb/download/details.aspx?id=30656 2013 version http://www.microsoft.com/en-us/download/details.aspx?id=40776 You also might be interested in the TFS power tools. They add