This is an archive of the discontinued Mercurial Phabricator instance.

histedit: remove an unnecessary default value of `b''` for commit message
ClosedPublic

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

Details

Summary

I don't think ctx.description() is ever anything falsy other than
b''. I think the comment added in 4c4232e51167 (histedit: extract
common summary code into method, 2016-05-27) is mistaken (I don't see
any code following that pattern before the function was added).

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.