Any way to prevent Evolve's `metaedit` from opening the message?
Marcos Cruz
evolve-testers-list at programandala.net
Sat Apr 8 07:12:31 UTC 2023
Faheem Mitha escribió/skribis/wrote/scrit (2023-04-08T11:43:46+0530):
> On Fri, 7 Apr 2023, Anton Shestakov wrote:
> > Anyway, to disable editor try `HGEDITOR=true hg metaedit ...`.
>
> That works for me. But where is this documented?
It has nothing to do with Mercurial or Evolve, if you mean that.
The syntax `ENVVAR=value command` is common to most shells, as far as I
know. It starts a command with the given environment value set with that
value. Even the fish shell, which has a different syntax to assign
variables (`set var value`), accepts that syntax in those cases.
> HGEDITOR
> This is the name of the editor to run when committing. See EDITOR.
> (deprecated, see 'hg help config.ui.editor')
I didn't know that it's a deprecated environment variable in Mercurial. But the
standard ones can be used too:
........
VISUAL
This is the name of the editor to use when committing. See EDITOR.
EDITOR
Sometimes Mercurial needs to open a text file in an editor for a user
to modify, for example when writing commit messages. The editor it
uses is determined by looking at the environment variables HGEDITOR,
VISUAL and EDITOR, in that order. The first non-empty one is chosen.
If all of them are empty, the editor defaults to 'vi'.
........
Anyway in the Mercurial list
(https://lists.mercurial-scm.org/pipermail/mercurial/2023-April/106227.html)
Sietse Brouwer proposed an alternative solution with `config.ui.editor`.
--
Marcos Cruz
http://programandala.net
More information about the Evolve-testers
mailing list