Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TFS annotate detect removal of code

Tags:

annotate

tfs

This sounds like a simple thing to do, but I am not sure if it is possible ...

If I use TFS annotate, I can determine when each line of code was changed and the changeset where it was changed. This is great for determining when something was added or modified. But what about determining when something was removed?

Does the removal of code appear in an annotate? I don't think it does. If not, how can I detect when some code was removed?

like image 601
ColinE Avatar asked Jun 28 '11 09:06

ColinE


2 Answers

Does the removal of code appear in an annotate?

I don't think so.

Which leaves taking diffs between specific versions, perhaps using divide and conquer to find the specific changeset.

like image 55
Richard Avatar answered Oct 15 '22 10:10

Richard


I don't think it is possible, annotation does not show code removal. You can open the History dialog for a File, Ctrl+Select 2 fairly separate changesets and then Compare those and see if the line was there or not. Keep increasing/decreasing the range of the changesets until you find it.

like image 39
DaveShaw Avatar answered Oct 15 '22 10:10

DaveShaw