I am working with Visual Studio 2012 and TFS 2013.
Is it possible to obtain the list of files affected by a workitem?
Currently, using the Query Editor under Team menu, I am only able to get all the changests commited for a workitem but for a code-review it would be interesting to get also directly the list of affected files.
In Source Control Explorer right click on a folder and on context menu "View History", will list all changeset's, select one and on Team Explorer show the informations about files changed.
You can get the same information by command line:
tf changeset /collection:http://servername:8080/tfs/DefaultCollection 123 /noprompt
to show the windows don't use "/noprompt" parameter.
Try using TFS Sidekicks. You can search for work item and it will give you a consolidated view.
Install sidekicks from http://www.attrice.info/cm/tfs/ for your relevant TFS version
Open side kicks and connect it to TFS (usual tfs dialogue)
Click Tools -> Code Review Sidekick
Click by Work Items and select the appropriate Project and Query (TFS explorer workitem query). Alternatively, you can search by changesets
Select the appropriate work item.
This will show all the changes for that workitem
So the goal here, you want to compare all of the changes to a file,
from its state before the first checkin of this workitem and the
last checkin of the workitem. i.e. collapse all of the changes
Right click the file you are reviewing, the one associates with the
highest changeset number, and select 'compare with previous (not in
view)'
This will show you the complete difference in your VS configured
diff tool.
If the file is new and has multiple checkins, select the
one with the maximum changeset it, and select 'compare with oldest
in the view'
Related
In P4V (Perforce visual client) there is a tree view, where you can browse your files. In the top of that view, there is a dropdown menu, where you can select the workspace you want to browse through.
I have just deleted a whole bunch of old workspaces, but they still show up in the drop-down menu. I cannot find any place to get rid of them.
I will be happy to know how to either:
remove specific workspaces from the drop-down, or
remove all workspaces from the drop-down
I used P4V Rev. Perforce Visual Client/MACOSX106X86_64/2014.1/827578 and had 10 workspaces listed in the drop down. As I deleted them they were removed from the drop-down. What version of P4V are you using?
I am using P4V (on Windows 7), dated 2013 March 20 and versioned:
Rev. Perforce Visual Client/NTX64/2013.1/611291
My problem was somewhat different than that described in the question. A number of my old workspaces were showing up in the P4V workspace drop-down menu, even though these old workspaces no longer existed on the server. (I did not delete those workspaces; I'm guessing they were deleted by an admin.)
In my case, I found a way to remove these orphaned names from the workspace drop-down menu. Here's what I did: For each workspace name in the drop-down menu I wanted to remove, I:
Recreated a workspace with the identical name. (I found that the root folder that I assigned to the workspace did not matter.)
Immediately deleted the workspace.
This resulted in the workspace name being automatically removed from the workspace drop-down menu.
i just installed visual studio 2010 and it is not opening any projects .I can make projects but i can not add any file in it and also it is not opening recent projects.
I am stuck here , kindly cooperate with me!
OK, sounds like the installaion got munged up.
first obvious questions: do you have any code that has actually been saved?
If "yes," copy that code to an alternate location, and use the simplest solution: use the Windows Control Panel to deinstall the MSVC instance and reinstall. If no code saved, just de-install and reinstall.
That's the obvious answer. You may also check the location for the project files, and the settings Visual Studios uses.
from the toolbar, click "tools".
From the drop-down list select "options"
Within the displayed list, scroll down to "projects and solutions"
expand that list (click on the little "+" box)
3 locations will be displayed.
Make sure you have write permission to all three locations
all the check boxes should be selected. Especially the one marked "save new projects when created"
click "OK" to accept the changes
I'm working in TFS with my team for project and the problem occurs when I'm trying to make new modeling project for my classes, it doesn't show up in pending changes.
So here is how I go:
First I enter my folder where I keep my classes. I've tried from there many combinations: I've tried first right-clicking on my folder and putting "check-out for edit" and then continued to * (see later); next I've tried clicking on .csproj of my classes so I activate my project when I'll be adding modeling project and then moved to *; last I tried to activate whole solution of our whole projects which is connecting them and then to moved to *.
None of it worked. (I was always having last version)
here is what I did next for all the possibilities:
I went to Architecture -> New diagram (named diagram and left create new project) -> Create (then windows shows up for creating new project in which folder and I always select my folder where I keep my classes).
After when that was done, I went to check to "pending changes" in Team Explorer, because there should be some available since I created already Modeling project. But there was none. Since I couldn't do it like that, the last solution how I made it was by right-clicking to Source-control Explorer on my project and going to Add items to folder and selected my project which was created locally where I wanted it to be created.
But, this last solution was giving me errors while trying to open my modeling project after. I know I should activate first modeling project, so I clicked to .modelproj and while clicking to it, it was giving me this "notice" or rather "warning":
The solution you have opened is under source control but not currently configured for integrated source control in Visual Studio. Would you like to bind this solution to source control now?
--
What am I doing wrong? Why solutions are not integrated by default while creating my project (my friends are doing it automatically, they don't need to right-click in Source Control Explorer to add item to be able to see pending changes)?
I hope I made myself understandable.
It looks like your solution binding is broken. Either click yes on the question to bind your solution to source control, this is information that must be stored in the solution file and while Visual Studio does see that the folder is mapped to source control, it also sees that your solution isn't (did you check the add solution to source control checkbox when you created it?)
Optionally try opening file -> Source Control -> (optionally) Advanced -> Manage Source Control. You can select project in your solution individually and then click the bind button on the toolbar to bind them to sourcecontrol manually.
I had a similar issue and, in my case, the solution was to right click on my project and choose Source Control->Go online. Apparently I must have somehow been switched to the offline mode.
I have successfully checked in files from source control explorer instead of solution explorer in this case. Then after that it has worked again
VIEW > Other Windows > Source Control Explorer
Other way to do it:
File--> Source Control --> Advance --> Change Source Control.
In the window displayed select all the projects you want to bind to the TFS
I had the same issue and solve it by clicking:
File -> Source Control -> Advanced -> Refresh Status
In VS2013+, you can check if your solution is online. In my case, due to VSO service outage, my solutions went offline. I had to open the solution, File > Source Control > Go Online.
I am working with TFS 2010. I need to find a way to search the fields that have changed which are tracked in the history of a work item. As fields are changed and updated they get tracked in History and you can view them by opening the "Show Changes(Fields)" dropdown. Is there a way to search this?
There is no built-in function for that however I needed the same thing some time ago and I wrote a little utility called TFS Helper that does it (and some more things).
You can get the source code from codeplex. The tab named "Work Item Field History" is what you want. It shows changed fields of a work item with the number of changes. You can see all changes when you click on a field.
http://tfshelper.codeplex.com/
I want to exclude some of the files in code folders from TFS 2012 source control.
Before VS2012 this was done by the "Exclude from source control" command available in "Source Control Explorer"s right-click menu. But in VS2012 I can not find it.
Does anybody know where it is ?
(I am using a "Local" workspace by the way.)
When you click on "Detected Changes" in the Team Explorer pane, "Promote Candidate Changes" window opens. This window allows you to select among detected changes and promote them to a source controlled item.
In this "Promote Candidate Changes" window, you select a file (or multi select files with Shift), right-click on it and a context menu pops up which contains an "ignore this local item" option. If you you click on it, selected files are excluded from source control.
Visual Studio adds a file named ".tfignore" to the source control mapping root, which contains names of all files to be ignored by source control. (Previous TFS versions did not produce this file but they were all server workspaces. Since this is a "Local" workspace, filenames to be ignores need to be kept in the workspace)
I have the real solution.
In the "team explorer" pane, in the "pending changes" tab, right click a new file you don't want in source control, and click "undo".
It will leave the file in the project, and exclude it from TFS. In the project window, the file will never have a "lock" icon on the left of its name.
This is the easiest solution:
1. Select the file(s) in Solution Explorer
2. Go to File -> Source Control -> Advanced
and here it is
Keep in mind:
If you right click a file in Solution Explorer you only find "the most important options" not all :)
In VS2013 this is back but has been moved to the file menu: -
Select the file in the Solution Explorer
File > Source Control > Advanced > Exclude xxx.xxx from Source Control
I know that this is slightly off topic but thought it may help someone.
I have Visual Studio 2017 Enterprise, and the option to exclude does not exist under File->Source Control. My solution to this problem was to open the Source Control Explorer, and remove the item I wanted to exclude.
It's in the Pending Changes pane separated to Excluded Changes and Included Changes sections. It allows filtering and excluding or promoting items between sections.
!