This is an archive of the discontinued Mercurial Phabricator instance.

py3: fix kwargs handling in hgext/fastannotate.py
ClosedPublic

Authored by pulkit on Sep 14 2018, 5:42 PM.

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

pulkit created this revision.Sep 14 2018, 5:42 PM
indygreg requested changes to this revision.Sep 14 2018, 6:13 PM
indygreg added a subscriber: indygreg.
indygreg added inline comments.
hgext/fastannotate/commands.py
212–217

Shouldn't we be doing the `pycompat.byteskwargs() at the beginning of the function and using regular string literals on the keys we set?

247–258

Ditto.

This revision now requires changes to proceed.Sep 14 2018, 6:13 PM
pulkit added inline comments.Sep 16 2018, 11:49 AM
hgext/fastannotate/commands.py
212–217

We can do that, but then in the end we have to do pycompat.strkwargs() again to pass into orig() into line 220 below. So I am preventing a conversion here is rev is None.

pulkit updated this revision to Diff 11101.Sep 16 2018, 11:54 AM
This revision was automatically updated to reflect the committed changes.