如何告诉 Bazaar 文件是二进制的

发布于 2024-07-18 09:48:54 字数 225 浏览 4 评论 0原文

这是为了避免在存在冲突时该文件中出现一些<<< 或一些>>

如果存在冲突,我只想要一条消息告诉我存在冲突,并且 bazaar 不应该弄乱该文件。

使用 Subversion,您可以修改 svn:mime-type 属性。 但不知道Bazaar有没有这个功能。

This is to avoid having some <<< or some >>> in that file if there are conflicts.

If there is a conflict, I just want a message telling me there is a conflict and bazaar should not mess with the file.

With subversion, you can modify the svn:mime-type property. But I don't know if Bazaar have this feature.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

女皇必胜 2024-07-25 09:48:54

参考 表示到目前为止还没有明确的方式来说明:

Bazaar 目前依靠[原文如此]内容分析来检测 diff 等命令的二进制文件。 将来可能会添加 binary = true 规则,但目前尚不支持。

The reference says that there is no explicit way of telling so far:

Bazaar currently relies of [sic] content analysis to detect binary files for commands like diff. In the future, a binary = true rule may be added but it is not supported yet.

陌上芳菲 2024-07-25 09:48:54

这很烦人,但您仍然拥有未更改的 .BASE、.OTHER 和 .THIS 文件,您只需将更改后的文件替换为您需要的文件即可。
我想可以编写脚本。

It is annoying, but you still have the .BASE, .OTHER and .THIS files which are unchanged, you just replace the altered file with the one you need.
Can be scripted, I suppose.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文