pcottle/learnGitBranching · warning · GitError
hg-error-no-status
Error message
hg-error-no-status
What it means
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.
Source
Thrown at src/js/mercurial/commands.js:36
],
delegate: function(engine, command) {
var options = command.getOptionsMap();
if (options['-A']) {
command.addWarning(intl.str('hg-a-option'));
}
return {
vcs: 'git',
name: 'commit'
};
}
},
status: {
regex: /^hg +(status|st) *$/,
dontCountForGolf: true,
execute: function(engine, command) {
throw new GitError({
msg: intl.str('hg-error-no-status')
});
}
},
'export': {
regex: /^hg +export($|\s)/,
dontCountForGolf: true,
delegate: function(engine, command) {
command.mapDotToHead();
return {
vcs: 'git',
name: 'show'
};
}
},
graft: {View on GitHub (pinned to 5b09d0ff96)
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
Defensive patterns
Strategy: validation
Validate before calling
if (mode === 'hg' && /^(status|st)\s*$/.test(cmd.trim())) { inform('hg status is not supported'); } else { dispatch(cmd); } Try / catch
try { engine.dispatch('hg status'); } catch (e) { if (e instanceof GitError) { showMsg(e.msg); } else throw e; } Prevention
- Treat hg status as intentionally unimplemented in this simulation
- Author hg levels without status steps
When it happens
Trigger: Running `hg status` or `hg st` while the sandbox is in mercurial mode. Any invocation unconditionally throws — there is no code path that succeeds.
Common situations: Users exploring hg mode expecting parity with git's `git status`; scripts or level solutions that try to use status to inspect the tree.
Related errors
- hg-error-log-no-follow
- -m and -d are incompatible
- -r is incompatible with -d
- -r is incompatible with -m
- git-error-options
AI-assisted analysis of pcottle/learnGitBranching@5b09d0ff96 (2026-08-27).
Data as JSON: /api/errors/25986e2e3a626d16.
Report an issue: GitHub.