remove vs rm vs forget

Matthieu Moy Matthieu.Moy at imag.fr
Mon Jun 5 12:18:15 BST 2006


"Michael Ellerman" <michael at ellerman.id.au> writes:

>  - when users want to remove a file they just "rm" it.

I was a bit confused by this behavior indeed.

One thing I liked in GNU Arch was that it warned me strongly when
something potentially went wrong. If I accidentally deleted a file in
baz 1.x, I got an error, and had to fix it before committing, which I
found good.

Another point in favor of explicit deletion (bzr rm or whatever) is
that it avoids the scenario:

$ rm generated-file.c
$ bzr status
deleted:
  generated-file.c
# think: "OK, the file is now unversionned, good!"
$ <do something that regenerate generated-file.c by mistake>
$ bzr commit -m "deleted generated-file.c"
# Bad luck, the file came back in the meantime :-(

So, this implicit deletion can be good, one can argue about making it
the default or not, but it has not only good points.

-- 
Matthieu




More information about the bazaar mailing list