Subversion: blame for past revision
Asked Answered
C

2

11

I love Subversion's blame operation (which shows for each line in the source file the commit that last changed it). Alas, we recently reformatted our entire source code, and now blame just shows that every line was last modified by this commit.

Can I somehow instruct blame to show me when the line was last changed before that commit? Bonus points if I can do it without leaving eclipse (we use subclipse).

I tried switching the working copy to a revision prior to the reformat, and do "show annotation" there, but that still shows every line last modified by the reformat ...

Capillaceous answered 17/10, 2012 at 15:17 Comment(0)
C
3

God I am slow today. At the bottom of the dialog that "Show Annotate" pops up is the setting "To revision". Setting that to the last revision prior to the reformat performs as expected, i.e. blame reports the commits before the reformat.

I guess since I never before needed to change the defaults in that dialog, I automatically skipped it ...

Capillaceous answered 17/10, 2012 at 15:31 Comment(0)
R
-1

You can open history of the file and then you can show annotation on specific revision using context menu in history view.

Rawboned answered 17/10, 2012 at 15:31 Comment(1)
That doesn't change the "To Revision" setting in the "Show annotation" dialog. Unless I change that setting, the newer commit is still reported (I agree it's not intuitive, but it's the way my subclipse works...)Capillaceous

© 2022 - 2024 — McMap. All rights reserved.