Why does histedit not respect EDITOR variable?

Benjamin Fritz fritzophrenic at gmail.com
Fri Jan 8 22:19:57 UTC 2016


I am using TortoiseHg, so maybe that contributes to my issue, but the same
behavior happens running directly on the command line.

I have my EDITOR environment variable set to "gvim -f" (without the quotes).

When I run "hg histedit 1234" I get notepad.exe instead of gvim.

If I set HGEDITOR to "gvim -f" then I get gvim as desired.

https://www.mercurial-scm.org/wiki/editor indicates that EDITOR should be
used if HGEDITOR and a couple other variables are not set. On my system,
only the EDITOR variable is currently set. What's going on? Is this
intentional behavior on Windows for some reason?

I'm running Mercurial 3.5.2 on Windows 7 64-bit.

-- 
Ben
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://selenic.com/pipermail/mercurial/attachments/20160108/d583a897/attachment.html>


More information about the Mercurial mailing list