hgweb: always start graph with the revision in url

It is the same fix for graph command, as was recently for log. This makes the
specified revision be always on top of the graph view.
Before the patch, for example with repo having revisions 0, 1, 2, 3 and revision
in url being '2', all revisions were shown and the specified one wasn't
the first.

--HG--
branch : stable
hgweb: fix incorrect way to count revisions in log (issue3977)

Actual amount of revisions is used now instead of their numbers in the repo
before to deal with skipped numbers correctly.
This iterates starting from the newest revision (which is shown on top)
yielding up to the specified count, instead of the reversed order used before.
Effect of this change on efficiency is negligible, when the same changesets are
returned.

--HG--
branch : stable
hgweb: fix incorrect revisions count in graph (issue3977)

Actual amount of revisions is used now instead of their numbers in the repo
before to deal with skipped numbers correctly.

--HG--
branch : stable
hgweb: force connection close on early response

Not all WSGI servers close the socket when an early response is sent
to a large POST request, which can cause the server to interpret the
already-sent request body as an incoming (but hopelessly invalid)
request.

--HG--
branch : stable
httpclient: update to revision 9517a2b56fe9 of httpplus (issue3905)

Includes upstream change "socketutil: force SSLv3 by default, as it is
safer" which should fix issue 3905.

--HG--
branch : stable
sslutil: force SSLv3 on Python 2.6 and later (issue3905)

We can't (easily) force SSL version on older Pythons, but on 2.6 and
later we can force SSLv3, which is safer and widely supported. This
also appears to work around a bug in IIS detailed in issue 3905.

--HG--
branch : stable
hgweb: fix duplication for some search queries

Given that N is maximum revision number in a repo, than if a revision with
number N-100n or N-100n+1 (for any integer n) is found with a hgweb search,
this revision is duplicated in search results.

--HG--
branch : stable
paper: fix rendering of the first tab in a line in Webkit (issue3990)

This fixes issue3990 for Webkit-browsers, and also older Opera versions.
Rendering in firefox is not changed.

--HG--
branch : stable
heads: fix children/descendants in doc (issue3992)

--HG--
branch : stable
check-code: do not abort on an unreadable file, only report this

--HG--
branch : stable
tests: test-check-code-hg.t works for all files to check

with xargs, backslashes are eaten up. Convert them to slashes therefore.
This is only a problem with ls (on windows). hg manifest returns slashes.

The pipe char is moved before the line end for telling check-code.py that sed
does not modify the output.

--HG--
branch : stable
checkunfinished: accommodate histedit quirk

Turns out histedit actually intends for commits (but not other
operations like update) to be possible during its operation.

--HG--
branch : stable
record: add checkunfinished support (issue3955)

--HG--
branch : stable