i18n-pt_BR: synchronized with e66fa4d587dc

With review and suggestions by Sheila Genesine.

--HG--
branch : stable
i18n-ja: synchronized with 3339e3df159d

--HG--
branch : stable
i18n-ru: synchronized with b616e4aacf96

--HG--
branch : stable
extra : rebase_source : 14e4d1bf45afa9a02e40e4bce1a246930604e8dc
i18n-ru: add missing space in summary output template

--HG--
branch : stable
test-clone: fix for vfat

fixes http://hgbuildbot.kublai.com/builders/vfat%20hg%20tests%20%28stable%29/builds/65

--HG--
branch : stable
log: make opts entries optional (issue2423)

--HG--
branch : stable
i18n-ru: synchronized with 85188487b9b4

--HG--
branch : stable
merge with i18n

--HG--
branch : stable
histedit: make comment part of the file describing rules as translatable

"i18n.gettext()" invocation for "editcomment" itself should have
little impact for whole initialization cost of histedit, because it is
already invoked for initialization of the command table entry.

'\n\n' has to be added to the text being edited separately from
"editcomment", because leading 'line feed' characters are not exported
to "hg.pot" file correctly.

--HG--
branch : stable
help/config.txt: reorder [web] options

--HG--
branch : stable
help/config.txt: document web.maxshortchanges

--HG--
branch : stable
hgweb: fix graph view paging

- Fix off-by-one error on displayed entries count in normal mode
- Fix incorrect paging when the top revision was lower than revcount
- Fix revcount not overriding web.maxshortchanges everywhere

--HG--
branch : stable
transplant: handle non-empty patches doing nothing (issue2806)

If patch.patch() reports patched files when applying a changeset and the
following commit says nothing changed, transplant used to abort with a
RuntimeError, assuming something went wrong with patching.

The mismatch is patch.patch() reports patched files, not changed ones.
It could be modified to report changed files but it means duplicating
work from status, may be expensive in the case of binary files, and is
probably not that useful at API level. For instance, if two patches are
applied on the working directory, the outcome may be nothing changed
while each call would have returned modified files. The caller would
have to call status() itself again.

This patch fixes the issue by trusting patching code: if the patch
succeeded and commit reports nothing changed, then nothing changed,
patch() did not "dropped changes on the floor".

--HG--
branch : stable
transplant: fix emptied changeset message

- Append an EOL
- State the changeset is skipped

--HG--
branch : stable
help: fix helptable indentation

--HG--
branch : stable
help: use the first topic name from helptable, not the longest alias

This makes the 'additional help topics' list consistent with the output from
keyword search (for instance subrepo/subrepos).

The sorting by longest name was introduced in 3f6a4f1de43f. There might have
been a good reason for it back then, but now it seems like a better idea to
place the preferred name first in the list in helptable.

--HG--
branch : stable
help: add 'mergetools' alias for the 'merge-tools' help topic

The '-' in 'merge-tools' is surprising but necessary in the configuration.
Let's help those who forget that and are looking for help.

--HG--
branch : stable
localrepo: clear the filecache on _rollback() and destroyed()

This restores the old behaviour of clearing the filecache when the repo is
destroyed but combines it with also clearing it on _rollback. Before, we tried
to only call it through _rollback but that ruined callers of destroyed.

Doing it on both code paths covers destroyed being called from somewhere
else, e.g. strip.

--HG--
branch : stable
rebase: remove second broken synopsis line (issue3172)

Displaying multiple synopsis in online help has been broken since Matt
RST refactoring, around ff26712a0c50. Rebase help is apparently the only
one using this trick, just drop the second synopsis and assume people
will understand as with graft help.

--HG--
branch : stable
histedit: add proper locking around repair.strip() calls

--HG--
branch : stable