bzr rm \\ crashes

Torsten Spindler torsten at ubuntu.com
Wed Dec 12 21:19:43 GMT 2007


bazaar can't remove a file named '\' intuitively.

$ touch \\
$ bzr add \\
$ bzr rm \\
bzr quits with the attached error report.

Torsten
-- 
Freenode: TeTeT
GPG: 1024D/C1573316 0E29 D4DF 160A C533 ADC8  312A F84D 0B8C C157 3316

-------------- next part --------------
bzr: ERROR: exceptions.IndexError: list index out of range

Traceback (most recent call last):
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 802, in run_bzr_catch_errors
    return run_bzr(argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 758, in run_bzr
    ret = run(*run_argv)
  File "/usr/lib/python2.5/site-packages/bzrlib/commands.py", line 492, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "/usr/lib/python2.5/site-packages/bzrlib/builtins.py", line 1121, in run
    force=file_deletion_strategy=='force')
  File "/usr/lib/python2.5/site-packages/bzrlib/mutabletree.py", line 51, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree.py", line 1905, in remove
    want_unversioned=True, specific_files=files):
  File "/usr/lib/python2.5/site-packages/bzrlib/workingtree_4.py", line 2172, in _iter_changes
    (None, splitpath(current_root_unicode)[-1]),
IndexError: list index out of range

bzr 1.0.0.candidate.1 on python 2.5.1.final.0 (linux2)
arguments: ['/usr/bin/bzr', 'rm', '\\']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_CA.UTF-8'
plugins:
  builddeb             /home/spindler/.bazaar/plugins/builddeb [0.92.0dev0]
  bzrtools             /usr/lib/python2.5/site-packages/bzrlib/plugins/bzrtools [1.0.0]
  gtk                  /home/spindler/.bazaar/plugins/gtk [0.92.0dev0]
  launchpad            /usr/lib/python2.5/site-packages/bzrlib/plugins/launchpad [unknown]
  multiparent          /usr/lib/python2.5/site-packages/bzrlib/plugins/multiparent.pyc [unknown]
  xmloutput            /home/spindler/.bazaar/plugins/xmloutput [0.2.0]

** Please send this report to bazaar at lists.ubuntu.com
   with a description of what you were doing when the
   error occurred.


More information about the bazaar mailing list