Can I import a different (older) version of a similar directory tree into SVN?

Is it possible to import a directory tree into subversion if a large number of files already exist in the repository? Many of the files to be imported will match the files in the repository, both in path and in content, but some will be older and some will be newer, and some files will either be in the repo or in the imported tree. but not in another, Is it possible to do this in such a way that the imported files are treated as the head of the repo so that modified, deleted files still retain their history?

0


source to share


1 answer


Here are the steps to get the job done easily.

  • Copy the directory through the svn directory with the option not to overwrite files.
  • Do a recursive append to all files in the directory (which will add new files to svn.)
  • Make another copy, time allows you to overwrite.
  • Fix


If you make it happen, you add all files that did not exist in that directory before to SVN, then you overwrite those that did exist, which svn will see as changes. Then you can check them. I would do this in these steps to make sure that you separate the two so you can verify that they are happening correctly independently.

+2


source







All Articles