[BZRTOOLS][BUG] uncaugh exception in bzr branches.

Matthieu Moy Matthieu.Moy at imag.fr
Wed May 10 18:43:59 BST 2006


The exception is triggered when bzr encounters a file whose name is 
non-us-ascii.

(In my case, it happened by typing "bzr branches" in $HOME)

moy at moy:/tmp/foo$ bzr branches
moy at moy:/tmp/foo$ rm ~/.bzr.log
rm: détruire fichier régulier `/home/moy/.bzr.log'? y
moy at moy:/tmp/foo$ touch été
moy at moy:/tmp/foo$ bzr branches
bzr: ERROR: exceptions.KeyError: u'\xe9'
   at /usr/lib/python2.4/urllib.py line 1107
   in quote
moy at moy:/tmp/foo$ cat ~/.bzr.log

this is a debug log for diagnosing/reporting problems in bzr
you can delete or truncate this file, or include sections in
bug reports to bazaar-ng at lists.canonical.com



bzr 0.8 invoked on python 2.4.2.final.0 (linux2)
   arguments: ['/home/moy/bin/local/moy/bzr', 'branches']
   working dir: u'/tmp/foo'
looking for plugins in /home/moy/local/usr/src/bzr.dev/bzrlib/plugins
Plugin name __init__ already loaded
Plugin name __init__ already loaded
looking for plugins in /home/moy/.bazaar/plugins
add plugin name bzrtools
load plugin (None, '/home/moy/.bazaar/plugins/bzrtools', ('', '', 5))
registered plugin command shelve
registered plugin command unshelve
registered plugin command shelf
registered plugin command clean-tree
registered plugin command graph-ancestry
registered plugin command fetch-ghosts
registered plugin command patch
registered plugin command shell
registered plugin command branch-history
registered plugin command zap
registered plugin command cbranch
registered plugin command branches
registered plugin command multi-pull
registered plugin command switch
registered plugin command branch-mark
registered plugin command rspush
registered plugin command baz-import-branch
registered plugin command baz-import
loaded succesfully
[12127] Wed 19:41:39.375 ERROR: exceptions.KeyError: u'\xe9'
   at /usr/lib/python2.4/urllib.py line 1107
   in quote
Traceback (most recent call last):
   File "/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/bzrlib/commands.py", 
line 650, in run_bzr_catch_errors
   File "/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/bzrlib/commands.py", 
line 612, in run_bzr
   File "/srv/www.bazaar-ng.org/rsync/bzr/bzr.dev/bzrlib/commands.py", 
line 246, in run_argv_aliases
   File "/home/moy/.bazaar/plugins/bzrtools/__init__.py", line 312, in run
     return branches(location)
   File "/home/moy/.bazaar/plugins/bzrtools/branches.py", line 15, in 
branches
     for branch in iter_branches(t, lister):
   File "/home/moy/.bazaar/plugins/bzrtools/bzrtools.py", line 321, in 
iter_branches
     for bzrdir in iter_bzrdirs(t, lister):
   File "/home/moy/.bazaar/plugins/bzrtools/bzrtools.py", line 355, in 
iter_bzrdirs
     for directory in lister(t):
   File "/home/moy/.bazaar/plugins/bzrtools/bzrtools.py", line 347, in 
lister
     return t.list_dir('.')
   File "/home/moy/local/usr/src/bzr.dev/bzrlib/transport/local.py", 
line 232, in list_dir
     return [urllib.quote(entry) for entry in os.listdir(path)]
   File "/usr/lib/python2.4/urllib.py", line 1107, in quote
     res = map(safe_map.__getitem__, s)
KeyError: u'\xe9'

return code 3


-- 
Matthieu




More information about the bazaar mailing list