remove vs rm vs forget (was [MERGE] remove --new)

Martin Pool mbp at canonical.com
Sun Jun 4 17:34:50 BST 2006


On 29 May 2006, Aaron Bentley <aaron.bentley at utoronto.ca> wrote:
> This patch adds support for "bzr remove --new", as discussed earlier on
> the list.  As is frequently the case, the tests are longer than the
> tested code.

This looks reasonable, but it reminds me of something else:

At the moment, 'bzr rm foo' makes foo unversioned, but doesn't remove it
from the working directory.  This is a bit weird.

So I propose to do this:

  bzr rm foo      -- delete it from the working directory and inventory
  bzr remove foo  -- just remove from the inventory, leave the file

'remove' is not such a great name for it.  I had been thinking
'unversion', or 'forget' which would be consistent with hg.  
On the whole I suggest making the canonical name 'forget' and 'remove'
as an alias.

-- 
Martin




More information about the bazaar mailing list