hgweb: rewrite two X or Y and Z ad-hoc ternaries with Y if X else Z
Just easier to muddle through for my brain now that I don't see the
old pattern much anymore.
Differential Revision: https://phab.mercurial-scm.org/D1077
httppeer: use native strings for headers
On Python 3, we need to use unicodes, rather than bytes. This lets
test-pull.t get a lot further along.
Differential Revision: https://phab.mercurial-scm.org/D887
hgweb: more native string treatment in query string parsing
Differential Revision: https://phab.mercurial-scm.org/D1076
httppeer: pass url to urllib as native str, not bytes
Differential Revision: https://phab.mercurial-scm.org/D1075
tersestatus: rework dirnode and tersedir docstrings
Follow-up on refactorings
3d6d4b12128e and
5d98674df18a of the original
changeset
7e3001b74ab3 by updating the docstrings of dirnode class and tersedir
function:
* rewrite dirnode.iterfilepaths()'s docstring (the method got
renamed and reimplemented in
5d98674df18a);
* simplify and update dirnode.tersewalk() to remove reference to 'self' and
'tersedict';
* use the imperative form of verbs in the first sentence of all docstrings.
Differential Revision: https://phab.mercurial-scm.org/D1072
bitmanipulation: reformat with clang-format
Mostly un-wrapping over-wrapped definitions.
Differential Revision: https://phab.mercurial-scm.org/D1069
hghave: add a check for clang-format
Differential Revision: https://phab.mercurial-scm.org/D1068