This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: produce native string for etag value
ClosedPublic

Authored by durin42 on Oct 5 2017, 5:32 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

durin42 created this revision.Oct 5 2017, 5:32 PM
quark added a subscriber: quark.Oct 5 2017, 9:58 PM
quark added inline comments.
mercurial/hgweb/common.py
211

It seems we are depending on os.stat_float_times(False). But that is deprecated in Python 3. If the API gets removed, mtime might be a float.

indygreg accepted this revision.Oct 6 2017, 9:42 AM
indygreg added a subscriber: indygreg.

I need to brush off my static immutable series so we can do something sensible with caching.

The reliance on stat_float_times() is a bit concerning. But Python 3 support is still very much a work in progress and we can fix this issue later. It would be nice to have a TODO to track it though.

This revision is now accepted and ready to land.Oct 6 2017, 9:42 AM
This revision was automatically updated to reflect the committed changes.