changeset 415:b40d4f1881cf

say that the editor opens on commit and note how to avoid that.
author drak@kaverne
date Thu, 18 Sep 2014 10:55:08 +0200
parents 3d0f1f7cee05
children 38f7971e54a9
files templates/guide/index.html
diffstat 1 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/templates/guide/index.html	Sun Aug 31 17:19:33 2014 +0200
+++ b/templates/guide/index.html	Thu Sep 18 10:55:08 2014 +0200
@@ -57,7 +57,9 @@
 $ echo 'print("Hello")' > hello.py
 $ hg add
 $ hg commit
-(enter the commit message)
+(your default editor opens,
+ enter the commit message,
+ save and close.)
 
 </pre>
 
@@ -76,6 +78,15 @@
 HG: added hello.py
 </div>
 
+<div class="note">
+<p class="note-title">Note:</p>
+To avoid switching to an editor, you can also enter the commit
+message on the command-line:
+<pre>$ hg commit -m "[MESSAGE]"
+
+</pre>
+</div>
+
 <p>You can then look into your initial history with <em>hg log</em>:</p>
 
 <pre>$ hg log