简体   繁体   English

如何使用Tortoise Hg(mercurial)手动将文件标记为已移动/重命名

[英]How to manually mark files as moved/renamed using Tortoise Hg (mercurial)

I have repository with a lot of files of different type (including binary files). 我有很多不同类型的文件(包括二进制文件)的存储库。 The thing is I decided to restructure my repository and moved most of files (it is about 5G) to another folder (inside the same repository). 问题是我决定重构我的存储库并将大部分文件(大约是5G)移动到另一个文件夹(在同一个存储库中)。 So, of course, I want to use find renames tool in Tortoise Hg but since the are a lot of files application client freezes and after some time stops responding . 所以,当然,我想在Tortoise Hg使用find renames工具,但由于很多文件应用程序客户端冻结并且在一段时间后停止响应 I know that those files are only moved so how can I manually force the TortoiseHg to mark them as renamed without using the tool ? 我知道那些文件只是被移动了,所以如何在不使用工具的情况下手动强制TortoiseHg将它们标记为重命名

PS of course I can use this tool several time for only part of all files, but I want to know is it possible to do without find renames tool. PS当然我可以使用这个工具几次只用于所有文件的一部分,但我想知道是否有可能没有找到重命名工具。

You can try running the following command in the terminal: 您可以尝试在终端中运行以下命令:

hg addremove --similarity 90

This will effectively tell Mercurial to detect renames of files which are 90% similar. 这将有效地告诉Mercurial检测90%相似的文件的重命名。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM