config: allow 'user' in .hgrc ui section (issue3169)

--HG--
branch : stable
extra : amend_source : b2114d50f3c3afa79a920c97722c813cb477a67e
test-bundle2: move file mode setting after sys import

--HG--
branch : stable
extra : rebase_source : 34c7536f06e4a2615ba1a2f250d22871e19d8787
debuginstall: handle quoted path for editor (issue4316)

When using an editor path with spaces and options, you can set 'ui.editor'
to '"/path to your/editor" -opt' and it works fine but 'hg debuginstall'
is complaining about it because it simply splits the editor and
tests presence of '"/path'.
Now correctly parse 'ui.editor' string by handling quoted path.

--HG--
branch : stable
extra : rebase_source : 5b5858b9b4b5384718d1cf80eca8c0caa9f04d0c
convert: fix argument mismatch at formatting the abort message

This patch fixes argument mismatch at formatting the abort message,
introduced by a204fd9b5ba9: the last '%s' doesn't have corresponded
argument.

This patch uses "unexpected size" in the abort message, to distinguish
the reason of failure from "unexpected type" failure checked in the
prior code path below:

        if info[1] != type:
            raise util.Abort(_('cannot read %r object at %s') % (type, rev))

--HG--
branch : stable
extra : rebase_source : 19bd769897e549f4baf0bf2a627bc9ff2625fabc
commands: make the warning message for "patch --partial" translatable

This patch makes the warning message for "patch --partial"
translatable: this message was introduced by bee0e1cffdd3, and there is
no reason to prevent this from being translatable.

--HG--
branch : stable
extra : rebase_source : 30a76535301737865eb713eeaf54f9674df6153d
templater: add i18n comments to error messages of newly added functions

This patch adds i18n comments to error messages of newly added
functions "startswith" (introduced by 4a445dc5abff) and "word" (by
8f23f8096606).

--HG--
branch : stable
extra : rebase_source : baeb534f1acca169f35db828d22d2b2787161512