Menu

Trac Commit Log


Commit Date  
[r10491] by cboos

TracMercurial for 0.12: support non-ascii characters in filenames (#7160)

- any path encoded using (one of) the `[hg] encoding` introduced in
r10490 can be decoded properly; at worse, a path using an unknown
encoding will be rendered via the latin1 encoding
- added `MercurialRepository.to_s` and `to_u` methods to convert a
Trac path (`unicode`) to and from a Mercurial path (`str`)
- make heavy use of `str_` prefix for variable names, as soon as
we're dealing with hg paths
- also make sure tags and branch names can contain non-ascii characters
- robust converting of changeset metadata back to unicode (try to reverse
`encoding.tolocal`)
- added lots of hints for future fixes and optimizations...

As this change is quite extensive and not thoroughly test, I'm
flagging the version as experimental.

2011-01-26 23:30:34 Tree
[r10490] by cboos

TracMercurial for 0.12: introduce an `[hg] encoding` setting for specifying the default encoding to use for the repository.

This can actually be a list of encoding, in case a variety of encodings where used for filenames (or content) in the same repository (see #9631).

Example:
{{{
[hg] encoding = utf-8,ucs-bom,shift-jis,gb18030,gbk,gb2312,cp936
}}}

In this changeset, we use it only in a secondary way for retrieving the filesystem path of the Mercurial repository.

2011-01-26 12:35:20 Tree
[r10489] by cboos

TracMercurial for 0.12: a bit of clean-up
- `trac.util.translation.domain_functions` is no longer "experimental"
- move trac_ui class upward, but actually this will probably be removed in the 0.13 version of the plugin
- some other minor clean-ups

2011-01-25 21:00:03 Tree
[r10488] by cboos

0.12.2dev/l10n/fr: one minor fix from r10480

2011-01-25 19:30:33 Tree
[r10487] by cboos

0.12.2dev: fix comment in test_update_session (r10474)

2011-01-25 19:25:48 Tree
[r10486] by lwatter

l10n/pt_BR: fixing strings (100%)

2011-01-24 17:33:35 Tree
[r10485] by jomae

0.12.2dev/l10n/ja: Updated translations (100%)

2011-01-24 17:26:26 Tree
[r10484] by dstoecker

SpamFilter: add ratio display to spambayes

2011-01-24 16:08:08 Tree
[r10483] by mrelbe

0.12.2dev/l10n/sv: translation corrected (100%)

2011-01-23 21:11:38 Tree
[r10482] by cboos

l10n/fr: translations updated (99%)

2011-01-23 21:09:45 Tree
Older >
MongoDB Logo MongoDB