All Questions
131
questions
42
votes
3answers
16k views
In TFS how can I correct the links to work items on an existing changeset
After checking in a change-set into source control in VS2010 TFS, how do I make corrections to the work items associated with the check-in. For example if I realize there was another work item that ...
34
votes
6answers
20k views
How can I open a single changeset in TFS from within Visual Studio
Someone emailed me a TFS changeset ID and now I am trying to open this single changeset. Is there an easy was to do this from within Visual Studio (VS 2008 if it matters)?
34
votes
4answers
46k views
TFS: Labels vs Changesets
I am trying to come up with best practices regarding use of TFS source control. Right now, anytime we do a build, we label the files that are checked into the TFS with the version number. Is this ...
31
votes
5answers
12k views
Convert changeset(s) to shelveset
Is it possible to create a shelveset from the diff of two versions of one branch just by some operations in tfs/tfpt?
e.g. create a shelveset from (changeset 2013 -> changeset 2034)
20
votes
3answers
13k views
TFS Build specific changeset and deploy it using the changeset number
I have a Build Definition to build a solution on my TFS.
This works well, but it always builds the latest version.
How can I force to build a specific changeset from the past?
How can I use/pass this ...
19
votes
1answer
21k views
Understand Rollback Entire changeset in tfs?
I'm new to TFS. Suppose I have 2 consecutive versions of changeset: 600,601. Nowf if I right click on 601 and choose Rollback Entire changeset, does that mean after that the changeset 601 should be ...
18
votes
4answers
11k views
How do I figure out which changeset a label in TFS was applied to?
We're using Team Foundation Server and we are using Labels to create points in our version history where specific versions (either internal or external) were produced.
Right now we were wondering if ...
18
votes
4answers
16k views
How can I undo a changeset rollback in TFS 2010?
I accidentally rolled back an entire changeset. How can I undo that operation, and restore the changeset?
15
votes
4answers
7k views
TFS - Find details of known changeset ID
I know the ID of a changeset that im interested in seeing the details of. Is there anywhere i can enter the ID of a changeset in order to see what changes were included in the commit without having to ...
15
votes
2answers
22k views
Rollback entire solution/project to specific changeset in TFS?
I am at changeset 121.
I want to rollback down to version 112, ignoring all the changes I've made since then.
I found this answer but I can't find the command in the menu.
I'm struggling with this ...
13
votes
5answers
12k views
Getting TFS to put the changeset in the assembly version
I have got a Team Foundation Server Build running cleanly. It produces several assemblies and I would like the assemblies versions to have the last number to be the changset number. That is, if I ...
12
votes
2answers
4k views
Is there a way to find out the source changeset from which a particular branch was created in TFS?
My case is the following. My team uses TFS 2012 for source control. My teammate has created a branch from a particular changeset (not the last for that moment) of another branch. What I need is to ...
12
votes
3answers
2k views
What is the meaning of an asterisk appended to a TFS changeset number
I am looking at candidate changesets for a merge and I get some output I don't understand:
tf merge /candidate /recursive $/Acme/Branches/Release/3.5 $/Acme/Trunk
Changeset Author ...
9
votes
2answers
5k views
How to export TFS changeset files to a destination Folder
I want to export TFS source files of a particular changeset and/or multiple changesets in a series. Files should be exported to say D:\myTFSExport folder. This is not the existing mapped folder.
...
8
votes
1answer
2k views
View TFS changeset details in console
I am using TFS and want to view all changes on a changeset that contains changes in several files. Viewing this in the GUI is not efficient as I have to open every single file. What I want to do is to ...
7
votes
1answer
5k views
How to merge TFS change sets programmatically?
I know how to merge a change set in TFS 2010 using the command line command "tf merge".
Is there a way I can do this in C# with code. I want to merge specific change sets only (cherry pick), one at ...
6
votes
1answer
5k views
How and where does TFS 2008 / TFS 2010 store changesets?
I am attempting to understand how TFS 2008 (and 2010 if it's different) store and communicate details of a set of changes in a changeset.
Now when I commit to a Subversion hosted project, the client ...
6
votes
3answers
3k views
A way to find out all affected files of a workItem or group of chgsets in TFS 2008?
I'm trying to figure out a way to find out which files were affected by a work item in TFS 2008.
I realize that this is a duplication of a question already asked by someone else here - View a list ...
6
votes
4answers
4k views
How to query work items with too many changesets
These work items (and the linked changesets) are often error prone.
So, good candidates for team code review, and should pay more attention.
I have checked Work Item Query Language and Client Object ...
5
votes
1answer
9k views
TFS: comparing changesets
In TFS we can find "compare" a file between 2 changesets. Is it possible to compare 2 changesets. Say take changeset "r" as reference and compare it with changeset "s" and find the files/folders which ...
5
votes
2answers
6k views
How to Query for Changesets in TFS Web interface
In TFS web interface I can query for items with various link types:
However, Changesets, while they are a legitimate and distinct link type in TFS are not included in that list:
Using the web ...
5
votes
2answers
4k views
How can I label exclusively by Changeset in TFS?
We are planning to move from StarTeam to TFS for source control and are in the midst of refining our ALM procedures. Maybe I am misunderstanding something about how labels work in TFS, but it appears ...
5
votes
2answers
2k views
How to get old version on TFS of c# project and make edits on it and check In the old version with edits?
I'm working on WPF c# project , I need to get specific version and make edits on it then check in the whole old version with my edits .
what I'm do is that I'm get Specific Version from TFS then ...
5
votes
3answers
4k views
TFS combine two change sets into one in the same branch
I have change set 50195 and 50196. The first check-in is 90% of the work for a work item, and the second is the other 10%. I want to be able to combine these two changes set's into one, so 100% of the ...
4
votes
1answer
1k views
TFS History for specific method
I am looking for a change that created a specific method in a class. It would be best if I could get the entire changeset associated with creating that method. Annotate only shows last change, which ...
4
votes
1answer
4k views
Use TFS Changeset in Version Number
I have seen 'tf changeset /latest /i' referenced as an answer in getting the latest changeset version number to use in the msbuild version number but can't find any further information on where that ...
4
votes
1answer
2k views
How can I store the new CHANGESET number in my source code after I check in?
In SVN you can use some keyword expansion to put your revision number inside source files. I find this particularly useful on SQL scripts.
Using TFS2010, how can I put the changeset number inside a ...
4
votes
1answer
3k views
View a list of all files changed as part of a Workitem in TFS
If I am checking in code against a workitem, on each check in a changeset is created. I can view the links tab of the workitem and then view each changeset to see the files that have been changed. ...
4
votes
2answers
3k views
How to associate work item with check in when using tf.exe
We have a rule in TFS that requires all checkins to be associated with a work item. We have an automated daily build process that uses tf.exe to check in the files. However, I did not find any way to ...
3
votes
8answers
633 views
Good comments on changesets in sourcecontrol [closed]
We need to develop guidelines for writing comments when we register code in version control system (such as TFS).
E.g., when we submit a bugfix, we create a comment "Fixed bug #..."
We tried to ...
3
votes
3answers
1k views
Team Foundation Server: Why is changeset history shared among separate projects?
I've been using TFS for a few months now and have a few separate (unrelated) projects on the web interface, and linking the associated projects in Visual Studio 2012. The anomaly I'm experiencing (at ...
3
votes
2answers
1k views
How to get the correct Version when unshelving older Shelvesets in TFS?
I just wanted to unshelve a shelveset which has been added some days ago. Meanwhile, somebody else has successfully checked in new versions of files contained in the shelveset. As there exists a ...
3
votes
4answers
636 views
Can Visual Studio (should it be able to) compute a diff between any two changesets associated with a work item?
Here is my use case:
I start on a project XYZ, for which I create a work item, and I make frequent check-ins, easily 10-20 in total. ALL of the code changes will be code-read and code-reviewed.
The ...
3
votes
2answers
789 views
Associate changesets with work item git-tfs
I've tried figuring this out but with no success so far. I am using git-tfs to check in my changes to TFS (local using GIT repository)
I read this question which briefly describes that you can ...
3
votes
2answers
2k views
visual studio 2017 search tfs changeset comment
I would like to search for tfs changeset comment in visual studio 2017.
Any way or tools except "View history and copy all to excel and search"?
Thanks.
3
votes
2answers
1k views
Link multiple changesets at once to User Story in TFS 2010
I have a User Story in TFS 2010 and I want to link to it all the changesets that are relevant for the User Story.
So in the User Story, I go to the All Links tab, click on Link to, change the link ...
3
votes
1answer
2k views
How can I query a folder in TFS to show me the latest ChangeSet for each object?
Currently, our DBAs require the TFS changeset number for any scripts/stored procedures/functions that need to get deployed. I have a folder in our TFS project with all of my stored procedures in it, ...
3
votes
1answer
705 views
How is the Change.MergeSources Field Populated in TFS?
We'd like to generate build notes with the following format:
1) Associated ChangeSets:
2) - ChangeSet 45241, by Joe: "Patching fix for foobar"
3) 'Foo.cs' integrated from dev v. 22 to qa v. 7
4)...
2
votes
2answers
2k views
How to get associated changesets from build in TFS 2017?
With c#, I was previously able to get associated changesets from TFS 2012 during a XAML build process using InformationNodeConverters.GetAssociatedChangesets(IBuildDetail). I got the IBuildDetail ...
2
votes
1answer
625 views
Viewing every single TFS changeset?
I am trying to view every single changeset in my project's history... at least the last 1000, say. So I ran the command:
tf history $/MyProject /recursive /format:brief
... at the VS command line. ...
2
votes
1answer
3k views
How to get work items associated with a changeset id using tfs api?
Hi I need to get a list of work items that are associated with selected changesets programmatically. So far I have been able to get the changesets associated with a work item ID using the concept of ...
2
votes
2answers
4k views
Given a TFS changeset, how can I find what work item(s) it is linked to?
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?
2
votes
1answer
279 views
.net solution to get files associated with changesets in TFS
I have a .net solution to get a set of changesets into a TFS local workspace that are specified in a config file [values.xml]. Once the files associated to the changesets are downloaded to the local ...
2
votes
2answers
1k views
Is there a way to show the TFS changeset number after a check-in?
Is there a way, with power tools or other extensions, to make it so that the changeset number is be displayed on an alert?
Currently it displays on the status bar, but disappears after a while, or at ...
2
votes
1answer
219 views
How to retrieve associated file being checked in from a changeset?
I want to trigger a build only when a particular file is checked in. So i need a way of accessing the associated filename from a changeset from the tfs build script, so i can check for the condition ...
2
votes
2answers
641 views
How can I filter TFS changeset history to exclude a certain user?
Is it possible to filter changesets in TFS 2012 to exclude the ones from a single user?
The commit history of the solution I currently work on contains quite a lot of noise due to an automated ...
2
votes
1answer
609 views
Get parent changeset number after branching by changeset in TFS 2013
I'm currently using TFS 2013 Update 3 with TFVC, along with Visual Studio 2013 Update 3.
Let's say there is a branch A, with a series of changesets, e.g. 11346, 12345, 12897. Then a branch B is ...
2
votes
1answer
2k views
Rolling back multiple changesets in TFS 2010 in a specific branch
We have a TFS 2010 server and there are multiple projects are maintained in this server. Changeset numbers are shared across TFS server. In a particular branch I've around 5 changesets and I want to ...
2
votes
1answer
962 views
TFS - Set a branch to allow check ins of "Merge" changeset only
In the company I work for we have a Release branch from which we publish versions to production.
I want to prevent a situation where someone checks in changes made in that branch directly without the ...
1
vote
3answers
2k views
TFS workitem and automatic association with changeset
Warning - newbie question....
I had a vision that I could select what workitem I was working on, and when I checked in the code, I could associate the changeset with the workitem automatically.
I'm ...