On Tue, Aug 4, 2009 at 10:32, Steve
> 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:
> 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
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