开发者

Replace svn repository with an archive

Is there a simple way to replace a svn repository with a archived dump?

I have a foo.tar that contains the future version of a svn repository. To commit this to the svn repository, all I need to do is to overwrite with the contents 开发者_JAVA百科of foo.tar and svn delete all files not in foo.tar and then commit?

Is there a better way to do it?


Simple delete with Explorer will not actually delete files in repository. Deleting all files with svn may be an overkill. I would set dates of all files in WC to some null-date, then copy all files from tar, then find and delete with svn all files that retained their null-date.


No, there is no real better way to do it.

  • Checkout your project
  • Delete all files in explorer (keep .svn folders and content)
  • Extract your archive in this folder
  • Check every file/folder and commit

Note :
Added item will be marked as added if you check them.
Removed item will be marked as removed if you check them (reported as missing).

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜