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

Call svn cat for all files modified or added in a given revision

From: OBones <obones_at_free.fr>
Date: Tue, 20 Mar 2012 15:39:24 +0100

Hello all,

Using svn cat I can see the state of a file at a given revision.
As it turns out, I have had in the past some files that were commit with
inconsistent line endings and that are making analysis tools stop
because of this.
What I want to do is find which (file, revision) pairs are impacted so
that I can go back in the past and fix those invalid commits (using
dump/reload).

However, I'm having a hard time finding a way to extract a list of
modified or added files in a given revision so that I could give that
list to the svn cat command that stops with an error when the above
situation arises.
And then, once this works, I'd put all this in a loop going from the
first revision to the last one.

I don't mind if this takes time, and I have no preference as to what
operating system this should run under between Linux and Windows
I believe using Linux would be much simpler, but still, I can't figure
out how to parse the result of svn log -v so that I can extract the
filenames to give to svn cat.
If need be, I can work out of a working copy.

I would very much appreciate any help on this matter

Regards
Olivier
Received on 2012-03-20 15:40:24 CET

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

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