tf-cli

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

自古美人都是妖i 提交于 2020-01-13 06:11:21
问题 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? 回答1: 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

Setting up a workspace using Team Explorer Everywhere on Linux

梦想与她 提交于 2020-01-01 03:20:09
问题 Im having trouble creating a workspace and downloading the files from a Team Foundation Server using the Team Explorer Everywhere command line client (TEE-CLC-10.0.0). I've gotten as far as creating workspace: $ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http://secretHost:8080 workspace -new KOLOBI Workspace 'KOLOBI2' created. Then I want to download files from the server to my workspace: $ ../tfs/TEE-CLC-10.0.0/tf -login:secretUsername,secretPassword -server:http:/

Moving files from one Team Foundation Project to Another

天大地大妈咪最大 提交于 2019-12-22 18:39:13
问题 Our project has hit a point where we need to split off some code into a separate team foundation project. We would like to move these files so they retain their version control history. Temporarily we are copying the files back to the original team foundation project and re-adding them just so that our daily build & test process doesn't break. As we are able to modify our build & test process we will start to remove these temporary copies. One issue we are noticing is that we have a nightly

How to update TFS workspace after computer name changes?

笑着哭i 提交于 2019-12-20 08:28:00
问题 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

Using TFS TF History to determine the latest changeset

亡梦爱人 提交于 2019-12-18 16:47:51
问题 I'm writing a script that will run a build only if there is a change in source code. I need to know whether there is a change since the build last ran. This used to work because the folder would not be deleted, so it was easy to determine whether there was a change, but now everything is deleted everytime the build is run. I thought about using the TFS TF history command to query the last changeset or the last two changesets, but have had issues parsing just the changeset number from the

How to determine branch name from batch file

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 18:25:05
问题 I did a get latest from TFS. My local path is: C:\tfs\Project\Branch1\Config\Deployment\CopyInstallers.bat TFS Path is: $\Project\Branch1\Config\Deployment\CopyInstallers.bat CopyInstallers.bat gets latest of installer folder from the branch at different location on the server and zips them and puts it on the shared location on server. I have another branch named Branch2 and its TFS path is $\Project\Branch2\Config\Deployment\CopyInstallers.bat What I am trying is try to get the branch name

Can I check in to TFS from CLI with a work item association?

谁说我不能喝 提交于 2019-12-11 19:08:25
问题 I can attempt to check in to TFS, but I get a policy violation because it isn't associated with a work item. That's fine, I do that all the time in VS, but I'm trying to do it via the command line and I can't figure out how to associate the tf vc checkin with a work item. Is this possible? This is using tf CLI v14, VS 2015, TFS 2013. 回答1: It can't be done from CLI, but you can however use the override parameter to override the checkin policy: /override:(reason|@reasonfile) Overrides a check

TFS checkin without workspace [duplicate]

旧巷老猫 提交于 2019-12-11 10:12:23
问题 This question already has an answer here : Check in a file to TFS (command line) withouth a work space (1 answer) Closed 3 years ago . I've done some research, but I can't seem to find the answer in the Microsoft docs. I was wondering if someone with TFS experience could let me know if it's possible to checkin a file without creating a workspace through the TF command line. 回答1: No it's not possible. A few alternatives: You could create a very small workspace mapping: For example: $/TFS

Using TF.exe with Team Foundation Service?

眉间皱痕 提交于 2019-12-10 09:43:10
问题 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

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