乌龟 svn 批量重命名文件合并 [英] tortoise svn mass rename files merge

查看:54
本文介绍了乌龟 svn 批量重命名文件合并的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个文件夹,同事必须在其中重命名其中的所有文件.该文件夹有大约 12000 个文件,这些文件使用重命名工具进行了重命名.现在我遇到了 Tortoise SVN 无法识别文件的问题,因为现在名称不同.这引出了我的问题:我可以告诉 subversion 文件已重命名,以便它在文件夹中查找并查找匹配的文件吗?内容没变,只是名字变了.

I have a folder in where a co worker had to rename all files in it. The folder has about 12000 files which were renamed with a renaming tool. Now I have the problem that Tortoise SVN does not recognize the files as the names are different now. This leads to my question: can I tell subversion that the files were renamed so that it looks in the folders and looks for the matching files? Contents did not change, but only the names.

我知道如果您同时选择丢失的条目和新文件并选择修复移动",有一种方法可以告诉乌龟文件已重命名.但这仅适用于两个文件.我有 12000 个文件,没有人会手动重命名它们.文件名仅部分更改.例如:data.00001.house.txt -> data.house.txt

I know there is a way to tell tortoise that a file was renamed if you select both, the missing entry and the new file and choose "repair move". But this is only possible for two files. I have 12000 files and no one will rename them by hand. The file names changed only partly. e.g.: data.00001.house.txt -> data.house.txt

任何帮助将不胜感激.你好,弗洛里安

Any help would be appreciated. Greetings, Florian

推荐答案

我认为您必须重新访问您同事的重命名工具.希望它是一个 .bat 文件或可以修改的东西.
更改它以使其正确使用 SVN MOVE 命令.

I think you have to re-visit you co-worker's rename tool. Hopefully it's a .bat file or something that can be modified.
Change it so that it properly uses the SVN MOVE command.

i.e. instead of:
mv <oldname> <newname>
use:
SVN MOVE <oldname> <newname>

您会注意到,这并不是真正的 Tortoise 解决方案,而是使用 Subversion 命令行SVN MOVE"命令的通用 Subversion 解决方案.参见:http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.move.html

You will notice that this isn't really a Tortoise solution, but a generic Subversion solution, using the Subversion command-line "SVN MOVE" command. see: http://svnbook.red-bean.com/en/1.7/svn.ref.svn.c.move.html

小规模测试以确保其有效.然后删除他所有的坏文件,还原他的更改,重新运行新实用程序,将其签入,然后就大功告成了.

Test that on a small scale to ensure that it works. Then delete all of his bad files, revert his changes, re-run the new utility, check it in, and you're done.

这篇关于乌龟 svn 批量重命名文件合并的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆