( )⚙ D11208 tests: demonstrate bug in `hg fix` with incorrectly dirty working copy

This is an archive of the discontinued Mercurial Phabricator instance.

tests: demonstrate bug in `hg fix` with incorrectly dirty working copy
ClosedPublic

Authored by martinvonz on Jul 23 2021, 3:16 AM.

Details

Summary

If the parent commit needs formatting but the working copy already has
the correct formatting, then the working copy will be reported as
modified even though it's clean (because the size in the dirstate is
incorrect). Because the bug only occurs when the size changes, I
modified the formatter used in the test case to remove repeated
spaces.

Diff Detail

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