I have to figure out the most recently checked in files on VSS. I know the date of check in but not much info other than the directory to which they were checked. There are a large number of files and I was wondering if there is a report I can pull out from some where.
Thanks
Right-click on the directory in VSS Explorer and choose View History: you can add date filters to the search, then output the results as text.
Related
I've made plenty of changes in my solution, using TFS, and I want to search for something only in the files which I edited (which appear in the "Pending Changes").
There is only an option to search in specific directories of the solution but not in the edited files.
Maybe there is some extension that can help with it?
For example, I want to search for TODO comments but only in the files edited by me, without seeing TODOs of other developers.
Press ctrl + shift + f
In Result options, select Find results Table
Press find all and then, in the find window filter by select Changed Documents.
This is not the answer for searching in pending changes in general, but it is possible to get list of TODOS only from changed files by using Task list window.
Open Task list window and use the filter for only Changed documents:
It doesnt look like there is a way to do this directly but I am able to do it via a work around that might work for you.
Shelve your pending changes
Delete all local items
Unshelve your changes (this should now bring down only the files you have edited to
your local)
Perform your search on the parent folder of all the edited items.
It's super hacky but you could write a quick console/win forms application to:
Scan your project directory for files with a last modified date greater than your last check in
Copy them to a separate temp folder
Use the visual studio's find in files feature to search that temp directory.
Not the exact answer for this question but go to View/Task List to search for the TODO
Apply the technics explained in the other answers.
To get a list of tokens, go to Tools/Options/Environment/TaskList
I am working with another dev and we're using TFS for source control. When he checks in a file or folder, I can see them with Source Control Explorer. I can do a Get Latest, and I can see that the file or folder is pulled down to my local file system.
However, if I flip over to my Solution Explorer, his new files or folders aren't appearing. I have clicked refresh, I have done a Get Latest from Solution Explorer, I have done a Get Specific Version from Solution Explorer.
Is there something I'm supposed to do to have them show up? Do I need to do an Add Existing Item every time he adds something to source control?
Thanks,
Chris
Adding files to source control is not the same thing with adding files to a project.
You are supposed to see the files on source control also.
To be able to see the files on solution explorer you need to add files to existing project by "Add Existing Item" option.
I'm interested in seeing the latest changes that landed to a solution with TFS (I'm using Visual Studio). However, I can't seem to find the option: using View History on a solution or project brings up the history of the file itself. Am I missing something?
If you right click on folder the containing a solution in the Source Control Explorer window you'll see all changesets. It's obvious but I had to ask for it too. I am using TFS2010/VS2010.
Edit
Here are the steps:
Team/Connect to Team Foundation Server / select Team Project/ in Team Explorer dblclick on Source Control and in Source Control Explore right click folder containing your solution select View History and here you are.
The View History command will list you all the changesets where the file/directory was changed (add/move/content changed, deleted, etc.).
So if you do a View History on a .sln or .csproj file you'll see only the changes that were made inside the file's content, not on the "Visual Studio Item" and its related item.
To sum up, the View History command is only a File System history, there's not a smarter logic out there.
EDIT
The only way to know what changed inside a solution or project is to do a View History on the common denominator (i.e. the directory that contains everything you want to view history). But it'll still be a File System kind of History.
There's not Logical History for Solution and Projects in Visual Studio. For instance you can't know what files where added to a given project your viewing the history from two given versions. Or what projects were added/removed in the solution.
All the pieces are there (because all the changes are stored in the .csproj or .sln), but the feature itself that parses the content and retrieve the logic you want to see doesn't exist. (by the way, it's a great feature and I agree it should be there).
Bottom line: TFS/Visual Studio gives you two history system:
Based on the source control/file system, by displaying changesets.
Based on the source control/file system, by displaying labels.
That's all...
Right click on folder in solution explorer, and choose View History. Then you can see all the Changesets listed that apply to that directory. Then right click a particular changeset and choose Changeset details... to see what changes occurred in that changeset.
At the moment when unmapping a source on TFS Source Control in Visual Studio 2010, the local downloaded files are removed automatically.
How can I keep them untouched?
Nam.
In VS2012
"You can remove the mapping in the Manage Workspaces dialog (File -> Source Control -> Advanced -> Workspaces...) Pick your workspace and select edit, remove the entry for that mapping. Then hit OK. When prompted to perform a Get you can say "no" and the items will stay on your local disk until you next perform a Get."
I added some more information on to it.
Source: Remove Mapping
Just in case anyone else need help with this because i went for hours searching for the solution....and this is the way to see all the mappings you have and remove them if wanted without deleting local files.
I have not seen this behavior. When un-mapping, are you choosing to re-download all files in the workspace? If so, choose not to do that, and the files should be preserved locally. Keep in mind that TFS is no longer tracking changes at that point, so it could get you into a lot of difficulty if you inadvertently make changes to those files.
What kind of process are you trying to implement that you need to keep these files around after an unmap? Maybe there's a different way to accomplish what you need?
--EDIT--
When you're doing this, files are just files, so you could:
do a Get of all files in that workspace
copy them to another folder on your hard drive
map that new folder
Do an "add files" on everything in the new folder structure
check in.
You will have to rebind all of the projects/solutions to source control when you do this.
My boss has gone on holiday for 2 weeks, and fixed a problem before he left but didn't check it in. I have found one file on his computer that seems to fix the problem, but I want to know if he has anything else checked out in case it takes more than the one file for the fix. Without looking through all the files individually, is there a way so see what he as checked out (like the pending changes, but for another user)
Assuming you are using TFS. You can do this through visual studio.
Under source control explorer right click on the directory you are interested in.
Go to find in source control > Status then you can enter a user to search by or just click find and you will see all checkout files.