context: use correct spelling of committable
context: move evolution functions from changectx to basectx

This is just a code move and corrects an overlook from my previous patch series
that assumed only a changectx would want this functionality.
hgweb: remove unused argument of changelist function in changelog

This doesn't change the behavior as the argument isn't used anyway, and
it's a preparation to the next patches,
templatefilters: add short format for age formatting

Implements a short output format for ages e.g. "1 second ago" is
abbrevated as "1s ago".
hgweb: always compute all entries and latestentry in changelog

Get the whole list of entries before rendering instead of using lazy evaluation.
This doesn't affect the performance for usual case when the entries are shown
anyway. When both entries and latestentry are used, this performs unnoticeably
faster, and for pages which use only latestentry (quite uncommon case) it
would be a bit slower.
This change will make it possible to get the first entry of the next page easily
without computing the list twice.
hgweb: add nextentry variable for easy pagination in changelog

nextentry always contains the first entry not shown on current page (if there is
such entry)
hgweb: add format javascript function

It replaces placeholders like '%key%' with replacement values given.
hgweb: add makeRequest javascript function

This function performs an asynchronous HTTP request and calls provided
callbacks:
- onstart: request is sent
- onsuccess: response is received
- onerror: some error occured
- oncomplete: response is fully processed and all other callbacks finished
hgweb: add docFromHTML javascript function

It takes a string with HTML markup and creates DOM document from it.
The implementation is a part of code from
https://developer.mozilla.org/en-US/docs/Web/API/DOMParser#DOMParser_HTML_extension_for_other_browsers
hgweb: add removeByClassName javascript function

It removes all elements with specified class name from the document.
hgweb: add appendFormatHTML javascript function

This is a convenient helper function to append some formatted HTML markup to a
DOM element.
util.h: getbe32() and putbe32() use intrinsic function to improve performance

Refer to https://bugzilla.mozilla.org/show_bug.cgi?id=351557. It can improve
byte-swapping performance by intrinsic function.
check-code: add bracket style check
hgweb: add ajaxScrollInit function, which does the ajax requests and processing

This function should be correctly called on a page, otherwise there is
no effect.
When called, it makes ajax requests for the next portion of changesets when the
user scrolls to the end. Also, when the monitor is high so that the
default amount of changesets isn't enough to fill it, multiple portions are
loaded if needed after the page load.
paper: call ajaxScrollInit in shortlog

This just calls ajaxScrollInit at the shortlog page template with all needed
agruments. So, infinite scrolling is working now there.
httpclient: apply upstream revision da7579b034a4 to fix SSL problems (issue4038)

--HG--
branch : stable
extra : rebase_source : 2aad70935af95ec35c86ed725a98c93b41eb08b9
sslutil: backed out changeset 074bd02352c0 (issue4038)

Python docs are a little unclear, but mpm reports reading the OpenSSL
source code shows that PROTOCOL_SSLv23 allows TLS whereas
PROTOCOL_SSLv3 does not.

--HG--
branch : stable
extra : rebase_source : e5f1d41b488cdb396577e8739d88780aae63c68e
merge with stable