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

Re: How to bring different version of files in subversion

From: Eric Wilhelm <ewilhelm_at_sbcglobal.net>
Date: 2004-07-07 17:57:03 CEST

# The following was supposedly scribed by
# François Beausoleil
# on Wednesday 07 July 2004 09:40 am:

>Simply checkout a working copy for where you want to import these files,
>and then copy the base version of the file.  svn add it, then svn
>commit.  Then, overwrite this file with the new version.  Confirm the
>change with svn status, then svn commit it.
>Repeat the loop until you run out of versions...

I use to use a script called 'versioner' which just made a copy of the file
into .<file>.nnn where 'nnn' was a zero-padded number that got automatically

I still use it occasionally as a one-off backup program (easier to use than
cp /path/to/file/file /path/to/file/.file.bak) But since I've started using
subversion, I needed a way to import as many as 100 of these backups for each
of about 50 files. So, I wrote versioner_to_subversion, which works really
well in my case. Maybe the OP can adapt it to suit. It basically does what
you've described above (copy, add, commit, copy, commit, repeat.)



"These crispix get soggy so quickly."
                                        -- Tina Connolly
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jul 7 17:55:37 2004

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.