Re: how to integrate a zip based archive into svn
From: Ryan Schmidt <subversion-2015_at_ryandesign.com>
Date: Sun, 18 Oct 2015 04:49:58 -0500
On Oct 18, 2015, at 3:09 AM, Eckard Klotz wrote:
> My question is associated with setting up a new SVN archive for an old project without loosing the old file-versions.
Subversion itself doesn't have such a feature built-in, but you can use a script to do it. That's what I did, years ago, when I first adopted Subversion. The script is called svn_load_dirs.pl
https://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/svn_load_dirs/
The procedure is:
- Create a Subversion repository.
- Create any directory structure in the repository that you need. For example, if this repository will house a single project, create the directories trunk, branches and tags. If the repository will house multiple projects, create a directory for the project name, then inside that create the trunk, branches and tags directories.
- Decompress the archive of the very first version of your project, and import that folder into the trunk folder.
- Tag the trunk with the version number of the version that you imported. Meaning: "svn copy" trunk to tags/1.0 or whatever the version number is.
- For each subsequent version you want to import, decompress the archive, and use svn_load_dirs.pl to import and tag that version.
|
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.