# HG changeset patch # User drak@kaverne # Date 1411030508 -7200 # Node ID b40d4f1881cfbcce6dab75775f9cc2d5f1619490 # Parent 3d0f1f7cee05c397117fc1b66273056d8755caad say that the editor opens on commit and note how to avoid that. diff -r 3d0f1f7cee05 -r b40d4f1881cf templates/guide/index.html --- 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.) @@ -76,6 +78,15 @@ HG: added hello.py +
+

Note:

+To avoid switching to an editor, you can also enter the commit +message on the command-line: +
$ hg commit -m "[MESSAGE]"
+
+
+
+

You can then look into your initial history with hg log:

$ hg log