Mercurial Editor: "Abbruch: Das System kann die angegebene Datei nicht finden"

Ich habe ein Problem damit, dass Mercurial meinen Editor erkennt. Ich habe eine Akte,c:\windows\notepad.exe und die Eingabe von "Editor" an der Eingabeaufforderung funktioniert. Ich kann festlegen, indem ich die "-m"Argument, um den Commit-Titel zu liefern. Aber ein einfaches"hg commit"bringt den Fehler auf.

Ein Aufruf an "hg --traceback commit"bringt auf:

Traceback (most recent call last):
  File "mercurial\dispatch.pyc", line 47, in _runcatch
  File "mercurial\dispatch.pyc", line 466, in _dispatch
  File "mercurial\dispatch.pyc", line 336, in runcommand
  File "mercurial\dispatch.pyc", line 517, in _runcommand
  File "mercurial\dispatch.pyc", line 471, in checkargs
  File "mercurial\dispatch.pyc", line 465, in <lambda>
  File "mercurial\util.pyc", line 401, in check
  File "mercurial\commands.pyc", line 708, in commit
  File "mercurial\cmdutil.pyc", line 1150, in commit
  File "mercurial\commands.pyc", line 706, in commitfunc
  File "mercurial\localrepo.pyc", line 836, in commit
  File "mercurial\cmdutil.pyc", line 1155, in commiteditor
  File "mercurial\cmdutil.pyc", line 1184, in commitforceeditor
  File "mercurial\ui.pyc", line 361, in edit
  File "mercurial\util.pyc", line 383, in system
  File "subprocess.pyc", line 470, in call
  File "subprocess.pyc", line 621, in __init__
  File "subprocess.pyc", line 830, in _execute_child
WindowsError: [Error 2] The system cannot find the file specified
abort: The system cannot find the file specified

Ich habe versucht, die Umgebungsvariable HGEDITOR zu setzen und "visual =" und "editor =" in demMercurial.ini Datei. Ich habe sowohl den vollen Pfad als auch das Kommando ausprobiert. Ich habe auch versucht, die Datei notepad.exe sowohl in den aktuellen Ordner als auch in den Mercurial-Ordner zu kopieren.

Im Idealfall möchte ich den Editor an dieser Stelle verwenden "C:\PortableApps\Notepad++Portable\Notepad++Portable.exe", aber zu diesem Zeitpunkt würde ich mich über jeden Editor freuen!

HG debugconfig Ausgabe:

c:\wamp\www\SiteAB.com\web>hg debugconfig
bundle.mainreporoot=c:\wamp\www\SiteAB.com\web
ui.username=killroy
ui.shell=true
ui.verbose=true
ui.visual="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe"
ui.editor="C:\PortableApps\Notepad++Portable\Notepad++Portable.exe"

Antworten auf die Frage(2)

Ihre Antwort auf die Frage