piping output of bzr merge --preview to less results in an error

Adam Mercer ramercer at gmail.com
Sun Mar 16 17:37:37 GMT 2008


Hi

I wanted to see what would be changed in a merge prior to actually
doing the merge and as it was quite a large change I piped the output
to less to easily scroll through the changes, doing this results in
the following error:

bzr: ERROR: exceptions.AssertionError: you cannot specify None for the
display encoding.

Traceback (most recent call last):
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 834, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 790, in run_bzr
    ret = run(*run_argv)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/commands.py",
line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py",
line 2846, in run
    location, revision, remember, possible_transports, pb)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py",
line 2917, in _get_merger_from_branch
    revision, -1)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py",
line 2984, in _select_branch_location
    location = self._get_remembered(tree, 'Merging from')
  File "/opt/local/lib/python2.5/site-packages/bzrlib/builtins.py",
line 3001, in _get_remembered
    self.outf.encoding)
  File "/opt/local/lib/python2.5/site-packages/bzrlib/urlutils.py",
line 576, in unescape_for_display
    assert encoding is not None, 'you cannot specify None for the
display encoding.'
AssertionError: you cannot specify None for the display encoding.

bzr 1.2.0 on python 2.5.2.final.0 (darwin)
arguments: ['/opt/local/bin/bzr', 'merge', '--preview']
encoding: 'UTF-8', fsenc: 'utf-8', lang: 'en_GB.UTF-8'
plugins:
  bzrtools
/opt/local/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.2.0]
  fastimport           /Users/ram/.bazaar/plugins/fastimport [unknown]
  gtk
/opt/local/lib/python2.5/site-packages/bzrlib/plugins/gtk [0.93.0]
  launchpad
/opt/local/lib/python2.5/site-packages/bzrlib/plugins/launchpad
[unknown]
  rebase
/opt/local/lib/python2.5/site-packages/bzrlib/plugins/rebase [0.3.0]

Cheers

Adam



More information about the bazaar mailing list