wireproto: remove todict() and use {} literals instead
synthrepo: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
bugzilla: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
extdiff: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
changegroup: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
filemerge: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
hgwebdir_mod: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.
webcommands: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : 689d8b5108bd1e81fce17a4116eb8f7b5607643a%2C9f100e38e6407030ae0b346788f43f7b0d930379
util: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : 9f102d0977b5b221efe2be65a7df6f42978c39db
run-tests: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : b290a3e008bb5f45f1f51b326686d5e692a97efe
webutil: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : fec070c27355888de5f059facad503b6ea4b11f6
minirst: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : e84ce51ea0084393015780384912e78bdfa842ac
templatekw: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : f60eb3b5f1b4f2cf2ce0feeabe9cefb712d92926
test-filelog: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : 34af8d4275260167cdc19fe102e1ba45d41b43bc
test-url: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : b54e39e3a7af8a1bf433e4b6df0f0594fd5ce881
test-wireproto: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : 2b9d6de01be172a28b7097e63481edaf0b22ad3f
setup.py: move from dict() construction to {} literals

The latter are both faster and more consistent across Python 2 and 3.

--HG--
extra : histedit_source : 7f1e42c3a58d9def7caf3c26afd22bc85a9f7bb4
check-code: disallow use of dict(key=value) construction

{} literals are faster and more consistent across Python 2 and 3.

Whitelisted the one use of dict() that is using a generator expresion.

--HG--
extra : histedit_source : 6654775fcde181bb37972c15c1261392d4cbe210
doc: show short description of each commands in generated documents

Before this patch, short description of each commands is not shown in
generated documents (HTML file and UNIX man page). This omitting may
prevent users from understanding about commands.

This patch show it as the 1st paragraph in the help section of each
commands. This style is chosen because:

  - showing it as the section title in "command - short desc" style
    disallows referencing by "#command" in HTML file: in "en" locale,
    hyphen concatenated title is used as the section ID in HTML file
    for this style

  - showing it as the 1st paragraph in "command - short desc" style
    seems to be redundant: "command" appears also just before as the
    section title

  - showing it just after synopsis like "hg help command" seems not to
    be reasonable in UNIX man page

This patch just writes short description ("d['desc'][0]") before "::",
because it should be already "strip()"-ed in "get_desc()", or empty
string for the command without description.

--HG--
extra : rebase_source : 5e2c090009d52bafe4435c6502860d817e0555c7
revset: changed ancestors revset to return lazy generators

This will not improve revsets like "::tip" but will do when that gets
intersected or substracted with another revset.

Performance Benchmarking:

$ time hg log -qr "draft() and ::tip"
...

real  0m3.961s
user  0m3.640s
sys 0m0.313s

$ time ./hg log -qr "draft() and ::tip"
...

real  0m1.080s
user  0m0.987s
sys 0m0.083s