[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Annotate filtering

From: Brian W. Fitzpatrick <fitz_at_collab.net>
Date: 2005-03-10 20:38:21 CET

On Thu, 2005-03-10 at 13:50 -0500, John Peacock wrote:
> On the Perl5 Porters list, the discussion came up on how to manage a
> large-scale whitespace-only change and still get useful annotation
> information. One thought was to commit all whitespace-only changes with
> a specific user, then filter that users' changes out when collecting the
> annotation information.
>
> That seemed preferable to 'svn blame --ignore-whitespace' which would
> seem to require examining the actual changes at each rev.
>
> Can anyone think of a clever way to do this?

If by clever you mean "egregious hack", I can.

- First, dup your working copy and reindent all the files.

- Write a script that iterates over all the files in your working copy.

- Run blame on each file, then, starting with the first user, make all
whitespace changes to the file for lines that that user is blamed for
(by pulling each line from the duped and reindented working copy).

- Commit as that user (you'll have to do something to work out the
auth).

- Repeat until you've committed all whitespace changes to the file.

- Move on to the next file.

It's gross, and it will be slow, but it should do the trick.

-Fitz, not to be misinterpreted as volunteering for the task.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Mar 10 20:44:03 2005

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.