This is an archive of the discontinued Mercurial Phabricator instance.

hgweb: use our new request object for "style" parameter
ClosedPublic

Authored by indygreg on Mar 10 2018, 3:03 PM.

Details

Summary

The "style" parameter is kind of wonky because it is explicitly
set and has lookups in random locations.

Let's port it to qsparams first because it isn't straightforward.

There is subtle change in behavior. But I don't think it is worth
calling out in a BC.

Our multidict's getitem returns the last set value for a key,
not the first. So if the query string set a variable multiple times,
before we would get the first value and now we would get the last
value. It makes no sense to specify these things multiple times.
And I think last write wins is more sensible than first write wins.

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

indygreg created this revision.Mar 10 2018, 3:03 PM
durin42 accepted this revision.Mar 12 2018, 5:05 PM
This revision is now accepted and ready to land.Mar 12 2018, 5:05 PM
This revision was automatically updated to reflect the committed changes.