Any way to prevent Evolve's `metaedit` from opening the message?

Faheem Mitha faheem at faheem.info
Sat Apr 8 06:13:46 UTC 2023


Hi Anton Shestakov,

On Fri, 7 Apr 2023, Anton Shestakov wrote:

> Yeah, I think metaedit was created as an ad-hoc solution to edit commit 
> messages, and then grew some flags for user and date, and even --fold for 
> some reason. Internally it can prevent editor from opening (e.g. when -m or 
> -l is present), but there's no way to do it from CLI. It's not a very 
> well-designed command IMO.
>
> Anyway, to disable editor try `HGEDITOR=true hg metaedit ...`.

That works for me. But where is this documented?

`hg environment` only says:

  HGEDITOR
         This is the name of the editor to run when committing. See EDITOR.

         (deprecated, see 'hg help config.ui.editor')

Regards, Faheem Mitha



More information about the Evolve-testers mailing list