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

Re: Every Version of Every File in a Repository

From: Andreas Stieger <andreas.stieger_at_gmx.de>
Date: Wed, 08 Oct 2014 21:38:20 +0100


On 08/10/14 21:08, Bob Archer wrote:
> I assume by “scan” you are talking about virus scanning. I would
> question the need to do this. Yea, I know… but still, many request come
> from a lack of understanding of a technology.

It is more likely that this is about a legal discovery or license/code
review. Here then is a hint.

#1 Fetch the global verbose xml log with files of the root of the
repository or the path you want to examine:

  svn log -r1:HEAD --xml -v ^/

#2 XSLT over that to find logentry/paths/path nodes with relevant
actions (add, modified, moved here), kind (file) and, when modified, the
relevant modifications (text-mods="true"). The result will be a machine
readable list with path / revision coordinates/URLs. Depending on
whether you included branches this may even be unique in terms of content.

#3 Run that list through your favorite svn client or plain HTTP user
agent, as required and suitable. Use pat + peg revisions.


#4 Run your scan as per your requirements.

You can adjust this to fit your (disk,process,scan) needs and resources.

Received on 2014-10-08 22:38:59 CEST

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.