You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Alf Lacis <Al...@aiscientific.com> on 2006/05/24 02:07:51 UTC

export every version of every file

Hi,
For legal purposes, I've been asked to try to automate the extraction of 
every version of every file from several repositories.

I know Tortoise does something like this when you ask for a diff between 
two files: you get two temporary files called:

c:\temp\main.c-rev2360.svn000.tmp.c
c:\temp\main.c-rev2443.svn000.tmp.c

What I'd like is to see a series of files like this example for 
"Documents\My_Comms.doc" :

<my_export_directory>\Documents\My_Comms.doc.rev1234.svn000.tmp.doc
<my_export_directory>\Documents\My_Comms.doc.rev2345.svn000.tmp.doc
<my_export_directory>\Documents\My_Comms.doc.rev3456.svn000.tmp.doc

I've tried searching the archive for variations of "every version of each 
file" but I get thousands of matches (after all, we're talking about 
versions and files!).
-- 
Regards, 
Alf Lacis 
Senior Software & Design Engineer 
A.i. Scientific Pty Ltd 
10-22 Hornibrook Esplanade 
CLONTARF QLD 4019 
AUSTRALIA 
Ph: (+617 or 07) 3105 5087  
www.aiscientific.com 

    "More of the ambassadors from other countries had arrived at the 
university, and more heads of the Guilds were pouring in, and every single 
one of them wanted to be involved in the decision-making process without 
necessarily going through the intelligence-using process first."
-- Terry Pratchett "The Last Hero"

    "As a person goes through primary & secondary schools, university and 
the rest of life, that person is told and learns a series of increasingly 
subtler lies about the world.  For example: "A stork brought you."  "You came from your mummy's tummy."  "Your mother 
and father made love and your mother gave birth to you."  "23 of your 
father's chromosomes combined with 23 of your mother's, and through 
mitosis and differentiation, you grew through embryo, foetus, baby, 
infant, child, through puberty to adult."  Each of these is a more-and-more accurate version of the truth, but still 
a lie.  The trick is to know how close you are to the 'truth'."
-- Alf Lacis, ~2002

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: export every version of every file

Posted by Lorenz <lo...@yahoo.com>.
Hi Alf,

>For legal purposes, I've been asked to try to automate the extraction of 
>every version of every file from several repositories.

sound like a job for the command line subversion client.

Something like

   svn export -r revision-to-export url-to-repo-root path-to-folder

wrapped into a for loop should do what you want.

Lorenz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org