将特定二进制文件自动转换为文本以在 Mercurial 中进行比较(差异)
我在 Mercurial 存储库中添加了几个小二进制文件。这些文件是我的开发工具之一的“源”文件(报告/表单/类定义)。
我制作了一个程序,将这些二进制文件转储到文本文件中,以便轻松区分它们。有没有办法告诉 Mercurial 某些文件扩展名需要在运行 diff 程序之前运行此转换?或者我必须将我的转换程序设置为主要 diff 工具并运行转换 - 或不运行 - 然后然后运行真正的 diff 程序?
I have several -small- binary files added in my Mercurial repository. The files are the "source" files of one of my development tools (report / form / class definitions).
I made a program that dumps this binary files to a text file to allow easy diffs between them. Is there any way to tell Mercurial that certain file extensions need to run this conversion before running the diff program? Or I have to set my conversion program as the main diff tool and run the conversion -or not- and then run the real diff program?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以(待定)使用 ExtDiff 扩展 来实现纯 Mercurial。如果
hgrc 中的 TortoiseHG 玩游戏
You can (TBT) use ExtDiff extension for pure Mercurial. In case of TortoiseHG
in hgrc plays the game
我最终在 diff 程序之前得到了一个小批次:
然后在 %UserProfile%\.hgrc 中配置该批次
I ended up with a small batch previous to the diff program:
and then config the batch in %UserProfile%\.hgrc