This is an archive of the discontinued Mercurial Phabricator instance.

histedit: use new function for getting first line of a string
ClosedPublic

Authored by martinvonz on Mar 25 2022, 1:38 AM.

Details

Summary

This fixes a crash you can run into if you enter a commit message
that's just a "newline-like" byte, like a form feed byte (`hg ci -m
\x0f` in Fish). That bug is the motivation for this series.

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.