【问题标题】:how to extract commit message from mercurial using powershell如何使用powershell从mercurial中提取提交消息
【发布时间】:2020-01-04 13:37:59
【问题描述】:

我是 mercurial 新手,我想使用 powershell 脚本从 mercurial 中提取我的最后一条提交消息并将其存储在 word 文档中。

【问题讨论】:

标签: c# powershell mercurial


【解决方案1】:

如果可以的话

  • 来自 PowerShell 的 Rum OS 命令
  • 截取它的标准输出

你可以阅读hg help log+hg help templating+hg help revsets,构建和使用smth。喜欢

hg log -r tip -T'{desc}'

对于已经提交的变更集。在 pre*-hook 代码中拦截提交消息会稍微复杂一些

【讨论】:

    【解决方案2】:

    这可能会迟到。 我们可以从 .gitignore 文件中获取最新的提交信息。

    【讨论】:

      猜你喜欢
      • 2012-05-09
      • 2017-03-08
      • 1970-01-01
      • 2018-05-19
      • 1970-01-01
      • 2015-05-21
      • 1970-01-01
      • 2011-03-21
      • 1970-01-01
      相关资源
      最近更新 更多