Page MenuHomePhabricator

dirstate-v2: Use attributes as intended instead of properties in v2_data()
ClosedPublic

Authored by SimonSapin on Oct 14 2021, 9:05 AM.

Details

Summary

The property return other integer values instead of None, so is not None
does not work.

This fixes test-dirstate-race.t in pure-Python mode, which currently fails
on the default branch.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

SimonSapin created this revision.Oct 14 2021, 9:05 AM
pulkit accepted this revision.Oct 14 2021, 2:41 PM
This revision is now accepted and ready to land.Oct 14 2021, 2:41 PM