Mercurial:在命令行上是否有多行提交消息? [英] Mercurial: multiline commit message on the command line?
本文介绍了Mercurial:在命令行上是否有多行提交消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在命令行上为mercurial指定多行提交消息?
How can I specify a multiline commit message for mercurial on the command line?
hg commit -m "* add foo\n* fix bar"
无效。日志显示:
changeset: 13:f2c6526e5911
tag: tip
date: Fri Jan 23 23:22:36 2009 +0100
files: foobar.cpp
description:
* add foo\n*fix bar
推荐答案
Mercurial:
上的多行提交消息命令行?
Mercurial: multiline commit message on the command line?
输入。
$ hg commit -m "Did some work
> Now I'm done"
只有第一行显示在hg日志中:
One of the things is that only the first line shows up in hg log:
$ hg log
changeset: 0:d2dc019450a2
tag: tip
user: Aaron Maenpaa <zacherates@gmail.com>
date: Sat Jan 24 07:46:23 2009 -0500
summary: Did some work
...但如果你启动hg view,你可以看到整个消息都在那里。
... but if you fire up "hg view" you can see that the whole message is there.
编辑添加:
...但hg -v log显示整个消息:
... but hg -v log shows the whole message:
$ hg -v log
changeset: 0:d2dc019450a2
tag: tip
user: Aaron Maenpaa <zacherates@gmail.com>
date: Sat Jan 24 07:46:23 2009 -0500
files: work
description:
Did some work
Now I'm done
这篇关于Mercurial:在命令行上是否有多行提交消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文