title: Script/tool to import series of snapshots, each being a new revision, into Subversion, populating source tree?
body: <p>I've developed code locally and taken a fairly regular snapshot whenever I reach a significant point in development, e.g. a working build.</p>
  
  <p>So I have a long-ish list of about 40 folders, each folder being a snapshot e.g. in ascending date YYYYMMDD order, e.g.:-</p>
  
  <ol>
  <li>20100523 </li>
  <li>20100614</li>
  <li>20100721</li>
  <li>20100722</li>
  <li>20100809</li>
  <li>20100901</li>
  <li>20101001</li>
  <li>20101003</li>
  <li>20101104</li>
  <li>20101119</li>
  <li>20101203</li>
  <li>20101218</li>
  <li>20110102</li>
  </ol>
  
  <p>I'm looking for a script to import each of these snapshots as a new subversion revision to the source tree. The end result being that the HEAD revision is the same as the last snapshot, and other revisions are as numbered.</p>
  
  <p>Some other requirements:</p>
  
  <ul>
  <li>that the HEAD revision is not cumulative of the previous snapshots, i.e., files that appeared in older snapshots but which don't appear in later ones (e.g. due to refactoring etc.) should not appear in the HEAD revision.</li>
  <li>meanwhile, there should be continuity between <em>files</em> that <em>do</em> persist between snapshots. Subversion should know that there are previous versions of these files and not treat them as brand new files within each revision.</li>
  </ul>
  
  <p>Some background about my aim:</p>
  
  <ul>
  <li>I need to formally revision control this work rather than keep local private snapshot copies.</li>
  <li>I plan to release this work as open source, so version controlling would be highly recommended</li>
  <li>I am evaluating some of the current popular version control systems (Subversion and GIT) BUT I <em>definitely</em> need a working solution in Subversion. I'm <em>not</em> looking to be persuaded to use one particular tool, I need a solution for each tool I am considering as I would also like a solution in GIT (I will post an answer separately for GIT so separate camps of folks who have expertise in GIT and Subversion will be able to give focused answers on one or the other).</li>
  </ul>
  
  <p>The same question but for GIT [Answered in programmers.stackexchange.com]:
  <a href="https://softwareengineering.stackexchange.com/questions/33868/script-tool-to-import-series-of-snapshots-each-being-a-new-edition-into-git-po">https://softwareengineering.stackexchange.com/questions/33868/script-tool-to-import-series-of-snapshots-each-being-a-new-edition-into-git-po</a></p>
  
  <p>An outline answer for Subversion in stackoverflow.com but not enough specifics about the script: what commands to use, code to check valid scenarios if necessary - i.e. a working script basically. <a href="https://stackoverflow.com/questions/2203818/is-there-anyway-to-import-xcode-snapshots-into-a-new-svn-repository">Is there anyway to import XCode snapshots into a new SVN repository?</a></p>
  
  <p>(<em>Originally posted in programmers.stackexchange.com but published here since programmers includes subjective discussions where as stackoverflow.com is for precise question and answers (according to official comparison of sites (<a href="http://meta.programmers.stackexchange.com/questions/171/whats-the-difference-between-programmers-and-so">http://meta.programmers.stackexchange.com/questions/171/whats-the-difference-between-programmers-and-so</a>) ).</em></p>