[PATCH 0 of 1] transfer branchmap branch names over the wire in utf-8

Henrik Stuart hg at hstuart.dk
Mon Oct 26 08:31:20 CDT 2009


The following patch ensures that branch names are transferred in UTF-8 over
the wire. Do note that there are several other places in the code that
potentially ought to be refactored as they work with local encoded items
(i.e. it is presumed that the local encoding is just as good as UTF-8,
which is seldom the case). This is, however, not immediately relevant to
this patch.

The patch also separates the branchmap into two methods: lbranchmap where
branch names are in local encoding, and branchmap where branch names are in
internal (UTF-8) encoding. The uses of branchmap that didn't expect UTF-8
have been changed to invoke lbranchmap. Once a future refactoring has been
completed for using UTF-8/unicode strings more consistently in all internal
methods, lbranchmap can be removed.

-- 
Kind regards,
  Henrik Stuart


More information about the Mercurial-devel mailing list