Convert unstructured SVN folders to trunk/branches style and retain history?

Posted by joelpt on Stack Overflow See other posts from Stack Overflow or by joelpt
Published on 2010-04-09T21:10:34Z Indexed on 2010/04/09 21:13 UTC
Read the original article Hit count: 215

Filed under:

I have a SVN repository which is currently structured like so:

/versions
  /1.0.0
  /1.0.1
  /1.0.2
  /1.1.0
  /(etc)

What happened here is that when it was time to start a new release, a team member would make a copy of the previous version's folder and rename that folder; then add/commit that new folder into SVN.

As a consequence, all of the revision history for a given version-folder is limited just to changes made in that version-folder. SVN thinks that each file in each version-folder was created anew at the time of version-folder creation.

So what I'd like to do is convert this series of folders into a traditional trunk/branches/tag SVN structure.

Is it possible to somehow "reconcile" the revision histories of each of these versioned folders back into one common revision-history tree?

© Stack Overflow or respective owner

Related posts about svn