hgweb: ensure isdirectory is None for repositories, replacing any True value

Until now, repositories did not provide any value for isdirectory in rows
produced for the index output, and thus isdirectory was generally evaluated as
None for each index entry representing a repository.

However, directories (visible when viewed with the descend and collapse
settings enabled) did provide a value of True and this value appeared to
persist in subsequent rows processed by the templater, causing isdirectory
tests in templates to produce incorrect results for index entries appearing
after directories.

This patch asserts the None value for repositories, thus erasing any such
persistent True values.

--HG--
branch : stable
extra : amend_source : 5014a3db624b7ba6cd3b03f1f65b47cb2bbfcad5
pull: close peer repo on completion (issue2491) (issue2797)

When pulling changes from a compressed bundle Mercurial first uncompresses it
to a temporary file in .hg directory. This file will not be deleted unless
the bundlerepo (other) is explicitly closed.

This is similar to cleanup that occurs after incoming.

--HG--
branch : stable
extra : rebase_source : 8a687f3792a7499b01b29b38111bcdfe0784480c
coal: hgweb style adds extra blank line in file view (issue4136)

Now hgweb style='coal' adds no extra blank in file view.

--HG--
branch : stable
extra : rebase_source : 1a20a3bf5da6c7aa496f7c6378abcefe2b50c366