~bzr-pqm/bzr/bzr.dev

  • Committer: ghigo
  • Date: 2007-07-16 17:52:07 UTC
  • mto: (2772.1.1 show-diff)
  • Revision ID: ghigo@venice-20070716175207-d1d8mmetgg8krcbd
On the basis of the email from Martin, Aaron I changed the encoding logic
in the function make_commit_message_template()
- in the diff, if the line is an header is decoded as UTF8
- otherwise the line is decoded as bzrlib.user_encoding
the rationale is that the message is already encoded as bzrlib.user_encoding
during the writing.
So the header which is know the encoding are correctly decoded. For the
other data, the decoding is the same of one which is used during the 
file writing in order do minimize the encoding/decoding effect.

In order to move the user encoding at the UI level, the parameter user_encoding
is added to the functions

- make_commit_message_template 
- _create_temp_file_with_commit_template
- edit_commit_message


Finally, I also added a paragraph to the tutorial about the option, and added
another while I was there (thank to James Westby)
Filename Latest Rev Last Changed Committer Comment Size
..
bzrlib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
contrib 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
doc 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
man1 2425.1.1 17 years ago Robert Collins ``make docs`` now creates a man page at ``man1/bzr Diff
tools 1185.1.29 19 years ago Robert Collins merge merge tweaks from aaron, which includes late Diff
.bzrignore 2399.1.17 17 years ago John Arbash Meinel [merge] bzr.dev 2562 590 bytes Diff Download File
.rsyncexclude 1185.33.36 19 years ago Martin Pool Exclude more files from dumb-rsync upload 203 bytes Diff Download File
BRANCH.TODO 2399.1.16 17 years ago John Arbash Meinel [merge] bzr.dev 2466 150 bytes Diff Download File
File bzr 2597.1.1 17 years ago Ian Clatworthy (Ian Clatworthy) Prepare for 0.19 development 4 KB Diff Download File
bzr.ico 1861.2.16 18 years ago Alexander Belchenko new official bzr.ico 7.2 KB Diff Download File
COPYING.txt 1861.2.9 18 years ago Alexander Belchenko rename gpl.txt => COPYING.txt 17.5 KB Diff Download File
File generate_docs.py 1861.2.7 18 years ago Alexander Belchenko merge bzr.dev 2.9 KB Diff Download File
INSTALL 2382.2.6 17 years ago Martin Pool Recommendation to delete bzrlib when installing 675 bytes Diff Download File
Makefile 2571.3.2 17 years ago Alexander Belchenko Build pyrex/C extensions for bzr.exe 5.6 KB Diff Download File
NEWS 2598.6.4 17 years ago ghigo - Update NEWS - Revert the change '%r' to '%s' for 136 KB Diff Download File
profile_imports.py 1996.3.36 18 years ago John Arbash Meinel [merge] bzr.dev 2070 5.4 KB Diff Download File
README 2545.1.1 17 years ago Martin Pool Fix typo and remove version number from README 2.4 KB Diff Download File
File setup.py 2571.3.2 17 years ago Alexander Belchenko Build pyrex/C extensions for bzr.exe 8.1 KB Diff Download File
TODO 2382.2.5 17 years ago Martin Pool Contents of TODO file moved into bug tracker 115 bytes Diff Download File