Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/localrepo.py @ 3835:d1ce5461beed
Allow the user to specify the fallback encoding for the changelog
Example: use EUC-JP instead of ISO-8859-1:
[ui]
fallbackencoding = EUC-JP
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Fri, 08 Dec 2006 22:01:05 -0200 |
parents | b3b868113d24 |
children | 4f6db0233606 |
comparison
equal
deleted
inserted
replaced
3834:a7b61c3b0f93 | 3835:d1ce5461beed |
---|---|
69 flags = revlog.REVLOG_DEFAULT_FLAGS | 69 flags = revlog.REVLOG_DEFAULT_FLAGS |
70 | 70 |
71 v = self.revlogversion | flags | 71 v = self.revlogversion | flags |
72 self.manifest = manifest.manifest(self.sopener, v) | 72 self.manifest = manifest.manifest(self.sopener, v) |
73 self.changelog = changelog.changelog(self.sopener, v) | 73 self.changelog = changelog.changelog(self.sopener, v) |
74 | |
75 fallback = self.ui.config('ui', 'fallbackencoding') | |
76 if fallback: | |
77 util._fallbackencoding = fallback | |
74 | 78 |
75 # the changelog might not have the inline index flag | 79 # the changelog might not have the inline index flag |
76 # on. If the format of the changelog is the same as found in | 80 # on. If the format of the changelog is the same as found in |
77 # .hgrc, apply any flags found in the .hgrc as well. | 81 # .hgrc, apply any flags found in the .hgrc as well. |
78 # Otherwise, just version from the changelog | 82 # Otherwise, just version from the changelog |