Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我可以得到它
hg status --change $HG_NODE
或与
hg log -r $HG_NODE --style mycustomstyle
但我无法进入HG_NODE预提交挂钩。有什么解决方法吗?
HG_NODE
如果
是你想要的,我想你可以使用:
hg status
$HG_NODE 在预提交中不可用,因为尚未创建变更集
您可以改用 pretxncommit (在本地存储库中创建新的变更集后运行,但在事务完成之前将使其永久化)
请注意,由于变更集已经“完成”,因此挂钩对源所做的修改将不会应用于当前变更集中。
我目前正在尝试在提交时使用当前变更集更新源文件,但我还没有找到解决方案