[issue2534] Can't commit: Python 2.7.1 breaks "editor" in win32
Edwin Brown
bugs at mercurial.selenic.com
Fri Dec 3 18:50:52 UTC 2010
New submission from Edwin Brown <Edwin.Brown at gmail.com>:
Software Versions
Mercurial 1.7.2 on Win32
Python 2.7.1 from python.org
Configuration
Mercurial.ini
[ui]
editor = C:\emacs-23.2\bin\emacs.exe -Q -nw
After upgrading to Python 2.7.1 it is impossible to get an editor to work
with windows due to changes in the way python invokes the cmd. In Python 2.7
and previous the editor entry works perfectly. With 2.7.1 Mercurial just
issues the following error
The filename, directory name, or volume label syntax is incorrect.
abort: edit failed: emacs.exe exited with status 1.
This is not confined to any particular text editor. It's even broken with
just HGEDITOR set to Notepad. It looks like python now inserts some extra ""
in the cmd /c string.
Not sure if you guys want to account for this or talk with the python folks.
The only workaround I've found is to bypass the editor entirely and use -m.
I've also rolled a machine back to 2.7 and that works properly.
----------
messages: 14580
nosy: ebrown
priority: urgent
status: unread
title: Can't commit: Python 2.7.1 breaks "editor" in win32
____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2534>
____________________________________________________
More information about the Mercurial-devel
mailing list