Pavel K
Pavel K

Reputation: 3618

How to find changeset by change in a file in TFS 2010

I have a huge css file and want to find a changeset that applied a particular change. For example in this file

p {
  font-family: Garamond, serif;
}
h2 {
  font-size: 110 %;
  color: red;
  background: white;
}

I want to know, when font-size was set to 110 %. But this file is huge and lots of changes commited before and after the required changeset, so I cannot search only for file, I've got too many results.

I also understand that there is quite a problem because this line could move up/down because of some intermediate insertions/deletions.

Could you help me?

Upvotes: 0

Views: 92

Answers (2)

Sunil Kumar
Sunil Kumar

Reputation: 1

You could use the View History feature also, apart from the Annotate feature. However, both will be useless if the person who committed the change, did not put appropriate comment. If using the View History feature and there are no appropriate comments, you have to go through the list of changesets, right click a changeset->ChangeSet Details->Select your file and Compare with previous version.

Upvotes: 0

Sandeep Singh Rawat
Sandeep Singh Rawat

Reputation: 1647

You are probably looking for Annotate feature in TFS

Look here: http://msdn.microsoft.com/en-us/library/bb385979.aspx

You can annotate a file to learn who made changes and what changes they made in all earlier versions of the file

Upvotes: 4

Related Questions