如何让 TortoiseHG 执行预差异操作
我的 hg 设置中有一个 pre-diff 挂钩,但当我尝试提交更改时它没有被执行。
我想做的是在提交之前生成数据库架构文件,以便它将出现在更改列表中。
我还有一个运行良好的更新挂钩。 TortoiseHG 是否未执行 hg diff 命令?我可以改用哪个钩子?
I have a pre-diff hook in my hg setup but it is not being executed when I try to commit my changes.
What I'm trying to do is generate the database schema file before commit so that it will appear in the list of changes.
I also have an update hook which works fine. Is TortoiseHG not performing an hg diff command? Which hook could I use instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TortoiseHg(从 v2.1.4 开始)至少以 3 种方式执行差异,其中没有一种使用原始
hg diff
命令:mdiff.unidiff
获得的mdiff.py
中的 方法。该方法绕过了钩子机制。据我所知,TortoiseHg 没有为其 diff 机制公开任何钩子。
TortoiseHg (as of v2.1.4) performs diffs in at least 3 ways, none of which use a raw
hg diff
command:mdiff.unidiff
method inmdiff.py
. This method bypasses the hook mechanism.As far as I know, TortoiseHg does not expose any hooks for its diff mechanism.