bzr rm --verbose produces 'No such file' error

Bug #729751 reported by Gordon Tyler on 2011-03-05
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Bazaar
Low
Unassigned

Bug Description

Eli Zaretskii says:

D:\gnu\bzr\idutils>bzr rm --verbose
bzr: ERROR: No such file: u'D:/gnu/bzr/idutils/libidu/ansi2knr.c'

D:\gnu\bzr\idutils>bzr rm
removed libidu/ansi2knr.c
removed libidu/ansi2knr.1
removed lib/rx.h
removed lib/rx.c

Martin Packman (gz) wrote :

bzr init rmverberr
cd rmverberr
echo Test>test.txt
bzr add
bzr commit -m "Single test file"
del test.txt
bzr rm --verbose

Changed in bzr:
importance: Undecided → Low
status: New → Confirmed
Martin Packman (gz) wrote :

Transcribe that to your local shell dialect and add -Derror to get a traceback something like:

Traceback (most recent call last):
  File "...\bzrlib\commands.py", line 926, in exception_to_return_code
    return the_callable(*args, **kwargs)
  File "...\bzrlib\commands.py", line 1126, in run_bzr
    ret = run(*run_argv)
  File "...\bzrlib\commands.py", line 691, in run_argv_aliases
    return self.run(**all_cmd_args)
  File "...\bzrlib\commands.py", line 713, in run
    return self._operation.run_simple(*args, **kwargs)
  File "...\bzrlib\cleanup.py", line 134, in run_simple
    return _do_with_cleanups(
  File "...\bzrlib\cleanup.py", line 165, in _do_with_cleanups
    result = func(*args, **kwargs)
  File "...\bzrlib\builtins.py", line 1616, in run
    force=(file_deletion_strategy=='no-backup'))
  File "...\bzrlib\mutabletree.py", line 50, in tree_write_locked
    return unbound(self, *args, **kwargs)
  File "...\bzrlib\workingtree.py", line 2095, in remove
    kind_ch = osutils.kind_marker(self.kind(fid))
  File "...\bzrlib\workingtree_4.py", line 549, in kind
    return self._kind(relpath)
  File "...\bzrlib\workingtree_4.py", line 553, in _kind
    kind = file_kind(abspath)
  File "...\bzrlib\osutils.py", line 2178, in file_kind
    raise errors.NoSuchFile(f)
NoSuchFile: No such file: u'.../test.txt'

Just adding '.' or any other kind of path to the `bzr rm` command makes it work.

Jelmer Vernooij (jelmer) on 2017-11-09
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers