bzr rm silently does nothing in the root of a working tree

Bug #263520 reported by Mark Hammond
2
Affects Status Importance Assigned to Milestone
Bazaar
Confirmed
Undecided
Unassigned

Bug Description

If you execute 'bzr rm dir', where dir points at the root of a working tree, bzr silently takes no action. This is true even when dir is specified as '.'

bzr should probably just report that it ignored the command - an error might be best from an API point of view so that callers can detect the situation, but that is for others to decide.

Revision history for this message
Robert Collins (lifeless) wrote : Re: [Bug 263520] [NEW] bzr rm silently does nothing in the root of a working tree

Definitely a bug; it should probably behave like 'bzr rm', much as 'bzr
add' behaves like 'bzr add ROOT'.

--
GPG key available at: <http://www.robertcollins.net/keys.txt>.

Revision history for this message
Alexander Belchenko (bialix) wrote :

This is more confusing when you invoke rm on a nested branch. I think bzr should print error message.

C:\Temp>cd 1
C:\Temp\1>

C:\Temp\1>bzr init a
Created a standalone tree (format: pack-0.92)

C:\Temp\1>bzr init .
Created a standalone tree (format: pack-0.92)

C:\Temp\1>bzr st
unknown:
  a/

C:\Temp\1>bzr ignore ./a

C:\Temp\1>bzr st
added:
  .bzrignore

C:\Temp\1>bzr rm a

C:\Temp\1>bzr rm not-existent
not-existent does not exist.

C:\Temp\1>mkdir foo

C:\Temp\1>bzr st
added:
  .bzrignore
unknown:
  foo/

C:\Temp\1>bzr rm foo
bzr: ERROR: Can't safely remove modified or unknown files:
unknown:
  foo/
Use --keep to not delete them, or --force to delete them regardless.

C:\Temp\1>bzr ignore foo

C:\Temp\1>bzr st
added:
  .bzrignore

C:\Temp\1>bzr rm foo
deleted foo

Changed in bzr:
status: New → Confirmed
Jelmer Vernooij (jelmer)
tags: added: check-for-breezy
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.