Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is there a way to find all the changes that affect a specific line of code?

History will find all the changes for a file.  Is there a way to filter that, or execute an extended search, that finds all changes to a specific line within the file?

0 votes

Comments

Note that the "changes to a specific line" will always be somewhat ambiguous.  All an SCM system knows is a series of file versions that have been checked in.  Whether a given line is considered "the same", "modified", or "deleted" from one version to the next depends upon the specific diff tool you are using.


Accepted answer

Permanent link
In the Eclipse client, you can select the file in the Package Explorer, open the context menu, and run 'Team - Annotate' on the file. That will show a column on the left side of the editor that you can hover your mouse over to see who edited it last. (If you want to see the previous edit, select the preceding change set in the History view and run Annotate from the context menu)

You can also get blame in the command line by running 'lscm annotate'. 
Daniel Reilly selected this answer as the correct answer

1 vote

Comments

Don't you mean assign blame :-)

1 vote

Assign, get, whatever. ;)


(I meant 'blame' in the CVS/SVN sense)

Thank you.  Annotate was what I was looking for; an aid to track down changes in a module at the line level.

1 vote

Note that "annotate" or "blame" only tells you what was the last change on a given line, not all the changes for a given line.


One other answer

Permanent link
Not very sure, but you can try exploring the history API if it has something useful.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Mar 04 '15, 9:13 p.m.

Question was seen: 3,191 times

Last updated: Mar 07 '15, 5:37 p.m.

Confirmation Cancel Confirm