集市合并挂钩?
我想在合并操作后运行批处理文件以自动解决某些冲突。
有什么想法吗?
post_merge_hook 可以正常工作,但我没有找到任何关于它存在的参考资料,
谢谢
Gil Idelson
i want to run a batch file after a merge operation to resolve certain conflicts automatically.
any ideas?
post_merge_hook will work just fine but i didnt find any references for it existence
thanks
Gil Idelson
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Bazaar 中没有合并后挂钩。最好的办法是创建一个 shell 别名或批处理文件来执行合并,然后使用冲突解决工具。
另一种选择是创建一个注册 merge_file_content 钩子 控制 bzr 如何合并特定文件。从 bzr 2.4 开始,有一个名为 news_merge 的捆绑插件,它演示了如何使用它。您可能还想阅读用户指南中的挂钩< /a>.
除非标准合并算法确实无法正确处理您的特殊文件,否则我会推荐第一个选项。
There is no post-merge hook in Bazaar. Your best bet is to make a shell alias or batch file which executes the merge and then your conflict resolution tool.
Another alternative is to create a plugin which registers a merge_file_content hook that controls how bzr merges specific files. Since bzr 2.4, there is bundled plugin called news_merge which demonstrates how this can be used. You may also want to read about hooks in the user guide.
Unless the standard merge algorithms really cannot handle your special files correctly, I would recommend the first option.