J'ai un problème pour que Mercurial reconnaisse mon éditeur. J'ai un fichier, c:\windows\notepad.exe
et en tapant "notepad" à l'invite de commande fonctionne. Je peux commettre en utilisant l'argument "-m
" pour fournir le titre de la livraison. Mais un simple "hg commit
" évoque l'erreur.Editeur Mercurial: "abandon: le système ne trouve pas le fichier spécifié"
Un appel à "hg --traceback commit
" fait apparaître: dans le fichier Mercurial.ini
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
J'ai essayé le réglage de la variable d'environnement HGEDITOR, le réglage "visual =
" et "editor =
". J'ai essayé le chemin complet ainsi que la commande seulement. J'ai également essayé de copier le dossier de notepad.exe dans le dossier actuel aussi bien que le dossier mercurial.
Idéalement, je voudrais utiliser l'éditeur à cet endroit "C:\PortableApps\Notepad++Portable\Notepad++Portable.exe
", mais à ce stade, je serais heureux avec un éditeur!
HG Sortie debugconfig:
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"
Utilisez-vous win7 64bit par hasard? Je reçois un problème similaire et a commencé un rapport à https://bitbucket.org/tortoisehg/stable/issue/1361/cannot-successfully-run-merge-tools-on-win-7-64 – Ash
C'est 32bit Win XP. – Killroy
Je semble avoir résolu mon problème en réinstallant le système d'exploitation. Des mesures extrêmes ... – Ash