This is an archive of the discontinued Mercurial Phabricator instance.

templatekw: use ctx.rev() instead of casting context to int
ClosedPublic

Authored by indygreg on Feb 24 2018, 2:30 PM.

Details

Summary

basectx has int implemented. Per mailing list discussion
with Yuya, we don't like having this implemented because it is
too much magic and in some cases rev() will return None, which
isn't an int.

So convert a '%d' % ctx to ctx.rev() instead.

Diff Detail

Repository
rHG Mercurial
Lint
Lint Skipped
Unit
Unit Tests Skipped

Event Timeline

indygreg created this revision.Feb 24 2018, 2:30 PM
yuja accepted this revision.Feb 24 2018, 8:36 PM
This revision is now accepted and ready to land.Feb 24 2018, 8:36 PM
This revision was automatically updated to reflect the committed changes.