This is an archive of the discontinued Mercurial Phabricator instance.

rhg: add a `debugrequirements` subcommand
ClosedPublic

Authored by SimonSapin on Nov 25 2020, 7:41 AM.

Details

Summary

For now it only prints the contents of .hg/requires as-is, without parsing.

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.Nov 25 2020, 7:41 AM
pulkit added a subscriber: pulkit.Nov 26 2020, 4:55 AM

For now it only prints the contents of .hg/requires as-is, without parsing.

It will be wrong when share-safe functionality is in play. It's an experimental feature and hence that should not block this series. However, one nice thing will be to add a TODO about it.

“For now” was intended as: until the next commit in the series which parses into a list of feature names. But with share-safe, did you mean that .hg/store/requires should also be read? Indeed that is not part of this series.

“For now” was intended as: until the next commit in the series which parses into a list of feature names. But with share-safe, did you mean that .hg/store/requires should also be read?

Not always, but yes. Seems like we lack documentation on the related behavior, I will do that and share with you.

pulkit accepted this revision.Nov 26 2020, 7:26 AM
This revision is now accepted and ready to land.Nov 26 2020, 7:26 AM
This revision was automatically updated to reflect the committed changes.