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

Martin Pool mbp at canonical.com
Mon Jun 5 12:03:50 BST 2006


On  4 Jun 2006, James Blackwell <jblack at merconline.com> wrote:
> 
> On Sun, Jun 04, 2006 at 05:34:50PM +0100, Martin Pool wrote:
> > 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
> 
> Be careful around this area. Gnuarch newbies had constant confusion about
> rm vs remove. There was frequent confusion about one vs. the other. People
> often complainted that they ran one when they meant the other.  I think
> the confusion was based in "rm means remove to the filesystem. So what
> does remove mean?" You get the idea.

Yes, that's what motivated the post.

> Is there really a need for rm? I thought running "$ rm file" already
> resulted in  "bzr rm foo" behaviour?

It does, though implicit removal has had some discussion in the past and
I'm by no means sure it will always be the default. 

> Yeah. If you want to have two, then remove really should be something
> else. Forget would be an excellent choice.

Great.

-- 
Martin




More information about the bazaar mailing list