This is an archive of the discontinued Mercurial Phabricator instance.

narrowspec: validate patterns when loading and saving spec file
ClosedPublic

Authored by indygreg on Sep 11 2018, 2:52 PM.

Details

Summary

Patterns should be normalized and validated before being passed into
narrowspec.save(). Let's assert that by checking immediately before
writing the narrow spec file. And let's assert that patterns loaded
from the spec file also conform.

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

indygreg created this revision.Sep 11 2018, 2:52 PM
martinvonz accepted this revision.Sep 11 2018, 6:16 PM
This revision is now accepted and ready to land.Sep 11 2018, 6:16 PM
indygreg updated this revision to Diff 10897.Sep 11 2018, 6:28 PM
indygreg updated this revision to Diff 10901.Sep 11 2018, 6:59 PM
This revision was automatically updated to reflect the committed changes.