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

Re: Audit trail of copies?

From: Andy Levy <andy.levy_at_gmail.com>
Date: Tue, 4 Aug 2009 10:49:40 -0400

On Tue, Aug 4, 2009 at 10:32, Steve
Constable<steve.constable_at_hotmail.com> wrote:
> I want to be able to show a machine generated (IE non-human) audit trail of
> svn copies within a repository.
> For example here is a possible file layout of a project:
> /trunk/project_A/cpp/file_A.cpp
>         /project_B/cpp/file_B.cpp
> Now, if I want to create a new project (project_C) but I want to inherit
> files from project_A and project_B I know I can do an 'svn cp' to do that.
> And I know I can of course create my own log files too. But what I'd like is
> a human proof way of showing for certain that (for example)
> /project_C/cpp/file_A.cpp actually came from /project_A_cpp/file_A.cpp
> including the repository number. I thought I had seen this before but after
> trying in both svn and in TortoiseSVN I can't seem to reproduce the
> information (or I can't find it). I don't care if this info is in the
> TortoiseSVN graph or in the logs. But I'd like a machine generated message
> that clearly indicates where a file was copied from, when this was done and
> what repository version the file came from.

It's right in the logs (be sure to specify --verbose). Every svn cp
will show "copy from" in the log for that revision. Example from my

r4450 | USER | 2009-08-03 16:34:26 -0400 (Mon, 03 Aug 2009) | 1 line
Changed paths:
   A /path/to/file.pdf (from /path/to/sourcefile/file.pdf:4446)

If you copy a whole directory, it won't show where the child
files/directories were copied from just, the directory you copied.

The data is all there, if you need to present a formatted report for
audit purposes, create it from the logs via script. I have an XSLT I
use to transform the svn log --xml --verbose output to HTML, then
print that to PDF for posterity.z


To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-04 16:50:37 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.