This is an archive of the discontinued Mercurial Phabricator instance.

debugcommands: support wrapping long lines
ClosedPublic

Authored by indygreg on Oct 12 2018, 4:14 AM.

Details

Summary

If a line within a block is indented more than the line that came before,
we automatically concatenate it with the previous line. This allows us to
pretty format data. This will make tests easier to read.

At some point we may just want to evaluate entire blocks as Python
code or something, as even with this change, things aren't perfect, as we
can't e.g. have formatting like:

foo eval:[

True

]

But this is strictly better than before, where we couldn't wrap long lines.

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.Oct 12 2018, 4:14 AM
This revision was automatically updated to reflect the committed changes.