{"record":{"id":"25986e2e3a626d16","repo":"pcottle/learnGitBranching","slug":"hg-error-no-status","errorCode":null,"errorMessage":"hg-error-no-status","messagePattern":"hg-error-no-status","errorType":"exception","errorClass":"GitError","httpStatus":null,"severity":"warning","filePath":"src/js/mercurial/commands.js","lineNumber":36,"sourceCode":"    ],\n    delegate: function(engine, command) {\n      var options = command.getOptionsMap();\n      if (options['-A']) {\n        command.addWarning(intl.str('hg-a-option'));\n      }\n\n      return {\n        vcs: 'git',\n        name: 'commit'\n      };\n    }\n  },\n\n  status: {\n    regex: /^hg +(status|st) *$/,\n    dontCountForGolf: true,\n    execute: function(engine, command) {\n      throw new GitError({\n        msg: intl.str('hg-error-no-status')\n      });\n    }\n  },\n\n  'export': {\n    regex: /^hg +export($|\\s)/,\n    dontCountForGolf: true,\n    delegate: function(engine, command) {\n      command.mapDotToHead();\n      return {\n        vcs: 'git',\n        name: 'show'\n      };\n    }\n  },\n\n  graft: {","sourceCodeStart":18,"sourceCodeEnd":54,"githubUrl":"https://github.com/pcottle/learnGitBranching/blob/5b09d0ff9678cad164f5a7488a279a44f90d7256/src/js/mercurial/commands.js#L18-L54","documentation":"The LearnGitBranching Mercurial mode deliberately does not implement `hg status` (or `hg st`). The command definition exists only to match the regex and immediately raise a GitError with the localized 'hg-error-no-status' message telling the user that feature isn't supported.","triggerScenarios":"Running `hg status` or `hg st` while the sandbox is in mercurial mode. Any invocation unconditionally throws — there is no code path that succeeds.","commonSituations":"Users exploring hg mode expecting parity with git's `git status`; scripts or level solutions that try to use status to inspect the tree.","solutions":["Use the visualization tree itself to inspect state instead of `hg status`","Switch back to git mode (`git status` is supported) if you need the command","Do not author hg levels that require status"],"exampleFix":null,"handlingStrategy":"validation","validationCode":"if (mode === 'hg' && /^(status|st)\\s*$/.test(cmd.trim())) { inform('hg status is not supported'); } else { dispatch(cmd); }","typeGuard":null,"tryCatchPattern":"try { engine.dispatch('hg status'); } catch (e) { if (e instanceof GitError) { showMsg(e.msg); } else throw e; }","preventionTips":["Treat hg status as intentionally unimplemented in this simulation","Author hg levels without status steps"],"tags":["mercurial","unsupported-command","hg-status"],"backgroundTag":"unsupported-command","analyzedSha":"5b09d0ff9678cad164f5a7488a279a44f90d7256","analyzedAt":"2026-08-27T13:53:49.057Z","schemaVersion":2},"datasetVersion":"2026-08-27T19:17:21.184Z"}