I am new to SVN. I have a lot of old, unused files that I want to archive or copy to a different repository or directory. How can I archive these files and keep the history of their revisions?
+2
A:
svn move
if you want them in a different directory. You can sill access the file's history.svn delete
if you want some kind of archive. It's there in the older revision but they're gone in newer ones. Of course, the file's history is untouched.
Joey
2010-04-30 23:04:13
+1
A:
Just delete them. History will remain and you won't have a bunch of files occupying space and fragmenting your HD.
Seb
2010-04-30 23:11:55
+1
A:
You can always create a new repository for you new revisions. Just use "svnadmin dump" and "svnadmin load" for your revisions. You will have your old revisions in the first repository, and you can start fresh in a new one.
Oded
2010-05-02 05:35:07
That should probably be `svnadmin dump` and `svnadmin load`, respectively.
René Nyffenegger
2010-05-02 05:55:31
Thanks. edited.
Oded
2010-05-02 08:30:02
A:
svn delete will work, but since I don't know of the best way to quickly get at the project's history, I always move it into a folder at the same level as /trunk and /branches, like /archives so it is simpler to find later, but also doesn't get downloaded when I check the trunk out to a different machine (or on the build server).
Dave
2010-05-02 08:48:12