在Mercurial中移动/重命名二进制文件时避免重复

发布于 2025-01-27 14:25:53 字数 210 浏览 3 评论 0原文

Mercurial MOVE/RENAME命令似乎已删除+复制操作,当二进制文件重命名或移动时,该气球是一个存储库。例如,

hg mv foo.bin bar.bin
hg rename bar.bin goo.bin

存储库现在包含3个相同的foo.bin副本。回想起来,应该使用大文件扩展名,但是假设文件已经投入,是否有办法避免这种重复?

The mercurial move/rename commands seem to be delete+copy operations, this balloons a repository when binary files are just renamed or moved. With for example

hg mv foo.bin bar.bin
hg rename bar.bin goo.bin

repository now contains 3 identical copies of foo.bin. In retrospect the largefiles extension should be used, but assuming that files are already committed, is there a way to avoid this duplication?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文