如何svn转储特定文件夹并将其加载到特定位置

 伊劾kj 发布于 2022-12-23 16:49

所以这是故事,我有以下SVN回购-

Fruit
 - Banana
   - trunk
 - Mango

Vegetables
 - Potato
   - trunk
 - Mango
   - trunk

事实证明,在整个过程中,我们一直在为芒果项目使用错误的回购(蔬菜),并且在水果回购中已有一个现有的芒果文件夹。因此,我的任务是将Vegetables \ Mango \ trunk文件夹放入Fruit \ Mango。这是我的尝试-

// I dump the vegetables repo
svnadmin dump C:\Repos\Vegetables > Vegetables.dump 

// I then filter the dump to only include Mango/trunk
svndumpfilter --drop-empty-revs --renumber-revs include Mango/trunk < Vegetables.dump > Mango-trunk.dump

// Finally, I load the filtered dump file into the Fruit/Mango
svnadmin load C:\Repos\Fruit --parent-dir Mango < Mango-trunk.dump

生成的水果回购如下:

Fruit
 - Banana
   - trunk
 - Mango
   - Mango
     - trunk

这显然是假设的,但反映了我现在遇到的问题。我不知道如何在没有其父目录的情况下单独迁移主干文件夹。我什至尝试根据我对文件系统的错误假设对已过滤的转储进行dumpfilter,但这无济于事。我需要执行确切任务的提示,建议的替代方法对我没有帮助,谢谢。

撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有