Differences between revisions 2 and 3
Revision 2 as of 2008-06-06 01:00:44
Size: 454
Editor: TomBa
Comment: add VISUAL env var
Revision 3 as of 2009-05-19 19:31:01
Size: 454
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 9: Line 9:
 * ["HGEDITOR"]
 * ["hgeditor"]
 * [[HGEDITOR]]
 * [[hgeditor]]

Mercurial tries to pick which program to call to edit a commit message by trying the following (in order):

  1. HGEDITOR environment variable

  2. editor configuration option in [ui] section (in hgrc or passed with --config ui.editor command-line option).

  3. VISUAL environment variable

  4. EDITOR environment variable

  5. vi, if none of the above is set

See also

editor (last edited 2015-11-11 09:07:17 by SashaUnknown)