Thanks for writing and sharing this - it is greatly appreciated.
Two suggestions: - default search should be all dates (uncheck the From Date checkbox by default, or make it configurable) - change the cursor to indicate the search is in progress (or provide a progress bar)
SWEET. Exactly what I was looking for and very handy. Works perfect and is pretty fast. I tried an alternative with TFS PowerTools but that is not integrated with VS so a hassle to launch from powershell and performance wise too not very fast. This add-in being contextual knows where to start searching from and populates the folder name automatically.
Overall, simple but effective and extremely useful add-in. THANK YOU VERY MUCH.
One small issue, is that when searching for text it would be useful to not trim the search text, e.g.
I want to search for EXAMPLE-2 (a JIRA issue reference for project 'EXAMPLE', issue ID #2) and it will currently return:
EXAMPLE-2 EXAMPLE-20 EXAMPLE-21 etc.
I realise a regular expression could be used, but I'm no regex expert so just being able to type a space at the end, or perhaps allow surround by double quotes for an exact match (including the space) e.g.
*BTW for anyone needing to know, the regular expression for the above is:
(where \b defines a word boundary, so it will work far better than a trailing space anyway)
Fantastic! We also use the comments to track against issues. I can't believe MS don't add a search option.
This works well for me, but I also get an Object Reference error when searching with no dates and simple comment.
Also a request: When I use this I deselect the "From date" field, then select the "Containing comment" field to enter my comment. It would be great if it could default the focus to the latter field rather than the "Containing file" field, because frequently when I open this I forget to change fields and I end up overwriting the file field, meaning I have to close and re-open the form to populate it again. It would also be great if it could remember the last date settings so I don't have to uncheck the "From date" checkbox every time I use this.
But other than that, this works great and is a huge time-saver.
I still have an "Object reference not set to an instance of an object" exception, if I made the search on the root (Containing file = $/), with no date selection and with something in Containing comment.
Also, would it be possible to add the contextual menus available with the "View History" feature (with a right-click on a changeset or on a file changed on a changeset) ? ----------------- (28th june 2011) Good idea!
Some bugs and ideas : - If I uncheck "From date" and let "By user" empty, I receive an "Object reference not set to an instance of an object" error. - The datetime pickers are too small to display the date correctly - You should allow the search even with an empty "Containing comment"; it would allow us to search for all changesets of a specific user or for a specific time frame.
My situation is similar to yours at my work. I was planning on coding something similiar to this, but you already did it. Thanks!
I have one suggestion though. Can you add functionality to display a distinct list of file changes for all the changesets that get returned from a query? For example, if I query for comment "Ticket #1" and get these changesets with these files: