hgserve encoding

Yuya Nishihara yuya at tcha.org
Sat Aug 12 06:08:09 EDT 2017


On Fri, 11 Aug 2017 11:39:19 -0400, Jérôme Godbout wrote:
> So what is the hgserv.config encoding used for
> exactly? is it only web data stream that is mark as encoded into particular
> way and it doesn't depend if the repos source?

The encoding setting is for rendering contents as HTML, notification email,
etc. Cloning/pulling never touch character encoding.

> So a repos made under
> Windows and Linux would be exactly the same and the OS/FS doesn't matter
> for hg repos and access, except the commit metadata (I guess this is true
> with what you said).

The commit metadata is encoded as UTF-8, which should have no platform
difference. The major platform divergence is non-ASCII filenames on Windows.
Even still, clone/pull should work. update might fail on Windows if the repo
contains UTF-8 filename for example.

See the wiki for details.

https://www.mercurial-scm.org/wiki/WindowsUTF8Plan


More information about the Mercurial mailing list