( )⚙ D9244 histedit: drop fallback to empty string from rendertemplate()

This is an archive of the discontinued Mercurial Phabricator instance.

histedit: drop fallback to empty string from rendertemplate()
ClosedPublic

Authored by martinvonz on Oct 23 2020, 2:43 AM.

Details

Summary

AFAICT, cmdutil.rendertemplate() always returns bytes (never
e.g. None), so we don't need to fall back to empty
(byte-)string. The fallback has been there since the code was added in
11c076786d56 (histedit: add templating support to histedit's rule file
generation, 2019-01-29).

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage

Event Timeline

martinvonz created this revision.Oct 23 2020, 2:43 AM
This revision was not accepted when it landed; it landed in state Needs Review.
This revision was automatically updated to reflect the committed changes.