在 Mercurial 中使用文件指定的提交消息标记修订?
是否可以使用消息文件而不是仅使用 -m
参数来指定消息来标记 Mercurial 中的修订版本?
Is it possible to tag a revision in Mercurial using a file for the message rather than just the -m
argument for specifying a message?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在 *nix 或 Cygwin 上,您可以使用反引号技巧:
On *nix or Cygwin, you can use the backtick trick:
这在某种程度上取决于你是否只是想传达一个大的信息作为论点。如果这是您的目标,那么您可以只使用反引号。即:
您必须小心确保该文件中没有双引号!那里有很多陷阱,但这至少应该让您开始...尽管值得一提,但这要求您处于某种 *nix shell 中。
现在,如果您打算指定一个文件作为指针,我不认为目前有一种方法可以说“查看(文件)了解详细信息”。尽管您可以将其用作提交消息。 :)
That somewhat depends on if you are just trying to have a large message as the argument. If that is your goal, then you can just use backticks. Ie:
You would have to be careful to make sure there are no doublequotes in that file though! There are quite a few gotchas sitting there, but that should get you started at least... Though it's worth mentioning, that requires you to be in a *nix shell of some sort.
Now if you meant to specify a file as a pointer, I do not believe there is currently a method to say 'see (file) for details' presently. Though you could just use that as your commit message. :)