如何使用 Beyond Compare 3 作为 svn 的 diff3-cmd?
我看到 这篇 帖子解释了如何让 BC3 工作Subversion 的 diff 工具...但是使用 Beyond Compare 3 进行三向合并/比较怎么样?
I saw this posting which explained how to get BC3 working as the diff tool for Subversion... but what about using Beyond Compare 3 to do 3-way merge/compares?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
为此,请创建一个名为 diff3wrap.bat 的批处理文件,并在 SVN 配置中设置 diff3-cmd 以指向它。
以下 diff3wrap.bat 文件将完成这项工作。 它为合并输出创建一个临时文件名,并在将合并内容返回到 SVN 后将其删除。
To do this, create a batch file called (for example) diff3wrap.bat, and setup your diff3-cmd in your SVN config to point at it.
The following diff3wrap.bat file will do the job. It creates a temporary filename for the merge output and deletes it after returning the merged contents back to SVN.
我喜欢 liamf 的批处理文件,但我认为它可能需要一个小小的调整:
我在命令调用中添加了自动合并和审查冲突,这样在合并没有冲突的情况下,它就会关闭而无需干预 - 用户界面只会弹出审查冲突。
因此,有问题的行变为:
I like liamf's batch file, but I think it could take a minor tweak:
I've added automerge and reviewconflicts to the command invocation, so that in case of a merge without conflicts it just closes without intervention - the UI will only pop-up to review conflicts.
Thus, the line in question becomes:
我只有 BC3 和 TFS 的经验,所以对此持保留态度。 三路合并是我唯一遇到问题的功能。 我不止一次必须在 BC3 中手动复制并粘贴更改才能完成合并。
I only have experience with BC3 and TFS, so take this with a grain of salt. The 3-way merge was the only feature I had problems with. More than once I had to copy and paste the changes by hand in BC3 to finish the merge.
这是 liamf 脚本的 Linux 版本,适用于 svn 1.6。
Here is a linux version of liamf's script that works with svn 1.6.
这是一个 Cygwin bash 脚本,适用于 diff-cmd 和 diff3-cmd 的 Subversion 1.7
Here's a Cygwin bash script that works with Subversion 1.7 for both diff-cmd and diff3-cmd