( )⚙ D10239 rhg: Initial support for the 'status' command

This is an archive of the discontinued Mercurial Phabricator instance.

rhg: Initial support for the 'status' command
ClosedPublic

Authored by SimonSapin on Mar 19 2021, 8:28 AM.

Details

Summary

Only comparing the working directory with its first parent revision
is supported. The core logic of dirstate handling and stat’ing files
was already in hg-core supporting Python-based hg with Rust extensions,
so this is mostly plumbing to rhg’s CLI.

For now the command is experimental and disabled by default,
since it has some bugs that causes a number of tests to fail.
These failures can be seen with:

tests/run-tests.py --rhg --extra-config-opt rhg.status=true

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

SimonSapin created this revision.Mar 19 2021, 8:28 AM

Apparently Phabricator doesn’t show commit author separately from submitter, but this was written a few months ago by Georges Racinet. I’ve reviewed it, rebased it, adapted it to compile again, and added the config to disable it by default. Some tests are failing when running this for hg status (hence disabling) but this is still a good start.

This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.