"abort: The system cannot find the file specified" in Mercurial

Asked
Active3 hr before
Viewed126 times

6 Answers

abortspecifiedcannotsystemmercurial
90%

In the Terminal tab, run a Mercurial command that itself runs an external program,,Mercurial runs the desired external program

Example_snippet/controller/utility/_abort.js/ RStudio Edition : Desktop RStu. . .
RStudio Edition: Desktop
RStudio Version: Version 1.1 .423
OS Version: Windows 10 Enterprise
R Version: 3.4 .3
load more v
88%

The fact that editor = notepad not working indicates that something is wrong with your environment, Since notepad works from the command line, I'm wondering maybe the problem is with your python installation

Example_snippet/controller/utility/_abort.js/ Traceback (most recent call l. . .
 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
Step 2 continued with c:\wamp\www\SiteAB.com\web>hg. . .
 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"
load more v
72%

I have a problem getting Mercurial to recognise my editor, I have a file, c:\windows\notepad

Example_snippet/controller/utility/_abort.js/ Traceback (most recent call la. . .
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
Step 2 continued with c:\wamp\www\SiteAB.com\web>hg . . .
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"
load more v
65%

The commitsigs,py entries in your stack trace suggest that the problem is due to the Commitsigs Extension

Example_snippet/controller/utility/_specified.js/ C:\Users\543829657\workspace\d. . .
C:\Users\543829657\workspace\dev.appl.ib.cbl>hg commit --traceback "--message=Ad
ded a task Xml2Java for creation request/response files" --user "Petr Gangnus <[email protected]>" -- application/build.gradle
   transaction abort!
   rollback completed
   Traceback (most recent call last):
   File "mercurial\dispatch.pyo", line 160, in _runcatch
   File "mercurial\dispatch.pyo", line 885, in _dispatch
   File "mercurial\dispatch.pyo", line 646, in runcommand
   File "mercurial\extensions.pyo", line 168, in closure
   File "hgext\color.pyo", line 521, in colorcmd
   File "mercurial\dispatch.pyo", line 976, in _runcommand
   File "mercurial\dispatch.pyo", line 947, in checkargs
   File "mercurial\dispatch.pyo", line 882, in <lambda>
      File "mercurial\util.pyo", line 716, in check
      File "mercurial\commands.pyo", line 1546, in commit
      File "mercurial\cmdutil.pyo", line 2456, in commit
      File "mercurial\commands.pyo", line 1540, in commitfunc
      File "mercurial\localrepo.pyo", line 64, in wrapper
      File "mercurial\localrepo.pyo", line 1508, in commit
      File "mercurial\localrepo.pyo", line 64, in wrapper
      File "mercurial\localrepo.pyo", line 1596, in commitctx
      File "mercurial\extensions.pyo", line 168, in closure
      File "c:/Users/543829657/workspace/mercurial-tools/commitsigs.py", line 357, in add
      File "c:/Users/543829657/workspace/mercurial-tools/commitsigs.py", line 168, in opensslsign
      File "subprocess.pyo", line 710, in __init__
      File "subprocess.pyo", line 958, in _execute_child
      WindowsError: [Error 2] The system cannot find the file specified
      abort: The system cannot find the file specified
load more v
75%

I have TortoiseHg installed on Windows XP, Although I can use most hg commands normally from the command line, I cannot use hg commit (without the -m option) because it fails to launch my editor

Example_snippet/controller/utility/_specified.js/ > hg commit /c: /c: is a direc. . .
> hg commit
   /
   c: /c: is a directory
abort: edit failed: notepad.exe exited with status 126
40%

Solved the issue: Lazy Badger pointed into the right direction, The issue was that the path to the git executable wasn't added to my PATH environment variable

Example_snippet/controller/utility/_specified.js/ ... lot of getting [path] line. . .
...lot of getting[path] lines here
getting path / to / some / file.ext
abort: The system cannot find the file specified[command returned code 255 Wed Jun 24 00: 51: 37 2015]
load more v